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?
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?
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.
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?
Besides TextEdit which comes with the Mac, I have OpenOffice 3 Text doc
It came pre-loaded, but I updated it a little.
Okay. I have IDLE but not sure what this is, never used it, will find out
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
Ok. Thanks. It seems the best thing to do is look up IDLE
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.
Problem solved; working nicely with IDLE.
Join our real-time social learning platform and learn together with your friends!