do not know what is wrong python under win2k

Tom Karas Tom.Karas at htp-tel.de
Mon Dec 17 17:43:58 EST 2001


Hello folks,

i went to the libary to get a copy of "Learning Python" where it
is written that i should write:

	import sys
	print sys.argv
	
into a file called "spam.py" and after that i should do the following:
	
	>>> python spam.py -i eggs -o bacon

but i got the following error

	Traceback (  File "<interactive input>", line 1
	    python spam.py -i eggs -o bacon
                      ^
	SyntaxError: invalid syntax

although i saved the file "spam.py" into the same directory where the 
python.exe is located.

What did i made wrong - i am conviced i did exactly like it was written
in the book.

Any help appreciated
Best regards
tom karas



More information about the Python-list mailing list