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

I'm horribly stuck on the Week 0 problem. Simple question: how do I get Python to execute consecutive commands, like asking one question and then another?

OpenStudy (p0sitr0n):

just write them one after the other

OpenStudy (rsmith6559):

Your probably trying to use the command prompt to write a program. Does each line start with ">>>"? If you want to write a program, you need to use a plain-text editor (not a word processor, they embed font and format information in the file) and then execute the file. Hopefully, these links will help: https://hkn.eecs.berkeley.edu/~dyoo/python/idle_intro/index.html https://www.python.org/about/gettingstarted/

OpenStudy (anonymous):

Did you get it working? If you use IDLE (I think the course has you install it?), if you are on the shell, open a new file (ctrl-n). Type all your lines of code there. When you are done, save it and hit run (f5). It will run the entire program line by line. You can also use any number of other text editors, even notepad if you wanted to.

OpenStudy (anonymous):

Correction: IDLE comes with Python

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!