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

How do I use IDLE? I tried running some code that was done in class after removing the #'s and there were issues. I also made my own code for project zero: name = raw_input("What is your name?") date = raw_input("When were you born?") print name + date All it asks for is my name and that's all. Am I supposed to make it run from a saved file? How do I do that?

OpenStudy (anonymous):

Hi Bill, you need to save as py file (eg. "ProblemSet1.py") and execute it. You can do this in the following way: 1. Exceute the idle.bat 2. In the menu click "New File" 3. Enter Code 4. Save as a py file 5. In the Menu click "Execute Module" 6. You should see the result in the Shell Window Hope hat this helps. cheers jp

OpenStudy (e.mccormick):

Short overview of using IDLE: https://hkn.eecs.berkeley.edu/~DYOO/python/idle_intro/index.html

OpenStudy (anonymous):

Sorry in what menu can I find "Execute Module?" In the shell or text editor in IDLE? Or right click on the file? Or I'm just not too bright I guess. In the text editor I'd click on Run->Python Shell. I should have went Run->Run Module. Or f5. Thank you for the help, I understand how to run my code now.

OpenStudy (e.mccormick):

=) Good! Glad we helped.

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!