Ask your own question, for FREE!
MIT 6.189 A Gentle Introduction to Programming Using Python (OCW) 21 Online
OpenStudy (anonymous):

I'm working on hw1_written, exercise 1.13. If I transcribe the exercise in the shell, do I have to type the first two lines (pay = _____ and location = _____)? I'm getting a SyntaxError when I do.

OpenStudy (anonymous):

In order for the code to work, pay and location would need to be specified as in the code examples given. This question is about code comprehension ie understanding what the code will do without actually running it.

OpenStudy (anonymous):

Oh, OK. So I guess I'm trying too hard to make it do something. This has been my pattern all week in learning this language. Thanks for the answer!

OpenStudy (anonymous):

You can run the code but it might need debugging first....

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!