Assignment 1: My version
If you notice an error please message me. Hope this helps.
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.
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.
Join our real-time social learning platform and learn together with your friends!