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

We have been asked to save code under ps0.py, but I can't find a way to save anything on the python terminal, excepting under "Save windows as a group". Is this where I should save it?

OpenStudy (anonymous):

windows? unix/linux? mac? other? .py files are plain text files that can be written (and saved) with any text editor. Have you been working in a shell (>>> prompt) and now you are trying to save what you have done?

OpenStudy (bramas):

I am working on a Mac OS X ver 10.6.8 and using the python terminal on which I have downloaded python 2.7.5 but when completing the code I cannot find a way to save it as instructed.

OpenStudy (anonymous):

I don't know about Macs. But any text editor will do, preferable something with syntax highlighting. I thought I saw the professors using IDLE on a Mac. Did you have to install Python or did it come pre-loaded on the Mac?

OpenStudy (bramas):

Besides TextEdit which comes with the Mac, I have OpenOffice 3 Text doc

OpenStudy (bramas):

It came pre-loaded, but I updated it a little.

OpenStudy (bramas):

Okay. I have IDLE but not sure what this is, never used it, will find out

OpenStudy (anonymous):

http://www.python.org/getit/mac/tcltk/ A complete install should include IDLE - That's what I use (Windows) and it seems sufficient. But there are other full blown IDE's out there. Vim seems to be pretty popular amongst programmers - I used it for a couple of weeks and I started to like it bu went back to IDLE because of Vim's learning curve - i was being impatient

OpenStudy (anonymous):

http://docs.python.org/2.7/using/mac.html

OpenStudy (anonymous):

http://docs.python.org/2.7/using/mac.html#the-ide

OpenStudy (bramas):

Ok. Thanks. It seems the best thing to do is look up IDLE

OpenStudy (anonymous):

IDLE has two "parts" a shell window and an editing window - in windows you get to an editing window from the shell from the File menu. In an editing window, you can execute your script with F5 - the results show up in the shell window.

OpenStudy (bramas):

Problem solved; working nicely with IDLE.

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!