[Tutor] can't run script

antonmuhin на rambler.ru antonmuhin на rambler.ru
Fri Jan 31 06:08:11 2003


Hello Mike,

Wednesday, January 29, 2003, 2:21:46 AM, you wrote:


MC> I am new to both programming and python, but I've been able to work in interactive
MC> mode and make some progress. However I am unable to save and "run script"-
MC> every time I try I get an "invalid syntax" error message. None of the tutorials
MC> seem to address this or anticipate it as a problem.?????????????
MC> mike

Take a look at saved file: you should find a lot of >>> there. They
are prompts of interpreter and lead to syntax error of Python.

Several examples:

In interpreter:

>>> a = 0
0
>>> print a + 1
1

In .py
a = 0
print a + 1

HTH
-- 
Best regards,
 antonmuhin                            mailto:antonmuhin@rambler.ru