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

Can anyone tell me how to save the code I built in IDLE as a .py file so that I can run it on terminal (I am using a Mac). THANKS!

OpenStudy (anonymous):

windows idle has two types of windows - one is the shell with a prompt and the other is for writing and editing code. from the File menu you can open a New editing window or open an existing file in an editing window. if you type a bunch of stuff into the shell window and save it (File menu) - it will save everything including the shell prompts. when you save files, be sure to save them with a ,py extension or the syntax hilighting won't work. http://en.wikibooks.org/wiki/Python_Beginner_to_Expert/Structured_Python http://docs.python.org/library/idle.html

OpenStudy (anonymous):

Thanks! That definitely helps!

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!