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!
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
Thanks! That definitely helps!
Join our real-time social learning platform and learn together with your friends!