Hi - Problem Set 0. I am just starting out and I was wondering if anyone could review my code to see if I am on the correct path - I think I got the write output, but not sure if the best code. Thank you! http://codepad.org/gZXpJjKV
although I just started as well, I tend to find it easier naming all my variables at the top of the code
Thanks - that makes sense.
also check out the question below
Good advice.
You're on the right track however your code is not quite conforming to the output that is being presented in the problem set. I'm not sure if that matters but other than that your code seems to work and do the job. Be aware that in Python 3.0 the function raw_input() is just input() and you will get a traceback in the interpreter if you use raw_input() in Python 3.0
Really sorry to be so remedial, but I have been doing all of the practice in the Python shell. The code exhibited seems to be in some other application. Could someone direct me to where I am supposed to be building functioning code, if not in the shell? (TL;DR how do I get the Input/output look and line listing in the example?)
From the Shell I selected "File --> New Window" and typed my code in the new window. Then you can press F5 to run it.
Oh, cool. Thanks, man.
Join our real-time social learning platform and learn together with your friends!