request for help

Terry Reedy tjreedy at
Tue Feb 19 00:58:15 CET 2013

On 2/18/2013 2:42 PM, leonardo selmi wrote:

> i saved the above program from python shell into a file as "" .

Which copied too much into the file.
Edit until it is a proper python program.

My initial guess was that you copied the >>> prompts, but you later 
message shows that it was the welcome header. Header and prompts all 
need to go. Idle makes it easier to cut and paste a single statement 
from its shell to an editor window and then save. Or start your code in 
an editor, such as IDLE's.

Terry Jan Reedy

More information about the Python-list mailing list