[Tutor] newbie question

Brett Shand brett@earthlight.co.nz
Wed, 30 May 2001 13:28:38 +1200


Hi

I'm back to programming after 20 years, and now starting to learn 
python, using pythonwin in w2k.

i'm reading 'learning python' - lutz and ascher, mar 99 and run into a 
problem.

i've made a module file 'spam.py' and saved it as 
c:\modules\spam.py - and then run it (see below) as suggested on 
page 13-14. i get the error below.  What am i doing wroing? 

-------------------------------------------------
>>> c:\modules> python spam.py -i eggs -o bacon
Traceback (  File "<interactive input>", line 1
c:\modules> python spam.py -i eggs -o bacon
SntaxError: invalid syntax
>>>
---------------------------------------------------

there is also a caret ^ appears below the colon in line 3 above.

any ideas please.

tia

brett