Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 14 Online
OpenStudy (anonymous):

Assignment 1: My version

OpenStudy (anonymous):

If you notice an error please message me. Hope this helps.

OpenStudy (anonymous):

I ran it, and I got an error. It's a little mistake you made when you were trying to be smart by giving your variables different names other than "x" and "y". Make sure they are the same all the way through the script. Message me if you need any more hints.

OpenStudy (anonymous):

Vlek, thank you for pointing out the error. Using a good naming convention is very important. I don't know what conventions are used in Python but normally one can either use the CamelCase or just capitalise each word making up a variable. This was mentioned in the first session. When a variables name give away what data it will store this helps to self document the program. Adopting a proper naming convention is therefore not being smart but simply being a good programmer.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!