I have installed Ubuntu and it came with Python 2.7.3 but I can't save any of my programs. I tried going to File, looking for a Save option, but it is not present. What should I do?
2 Answers
The command line interpreter for Python is not an editor and does not have a save option. This is just something for testing your commands.
You need something like gedit (or another editor) to type your commands. Those editors all have save option.
If you want to program with Python on Ubuntu, I suggest you use IDLE. IDLE was built entirely using Python and tK (a window module for python) and it works fine for anything I have ever done.
It gives you syntax highlighting and debugging features, very handy for tracking down bugs and the like.
Gedit also works, and it has several languages that it can syntax highlight, but it doesn't have the debugging features (at least that I have seen.)
Another one you could look into is Stani's Python Editor, another IDE developed by a user.
Like @Rinzwind said, the python command line doesn't provide an option for saving your source files, it is just a way to test out commands and ideas without actually having to write a full program to do it.
EDIT:
Another one I found very useful was Geany.
I don't remember if I had to install it or not (probably did, simple search in the Software Center should bring it up). It gives code highlighting, auto-indentation, the ability to increase & decrease the indents on chunks of code, the ability to comment out chunks of code, and run the code directly from the IDE. You can also quickly swap between running it with python
(default) and python3
or another.

- 9,783
python
likely runs.) – Eliah Kagan Mar 21 '13 at 09:59