[Tutor] Real newbie - python can't open spam.py

Michael Rowan mike.rowan at internode.on.net
Sat Oct 29 03:59:15 CEST 2005


I'm on my first day with python2.3 on Windows XP.  I'm able to run 
python interactively.

I've created a text file using NotePad, named it spam.py (as per 
O'REILLY Learning Python, p13)  contents as folows

import sys
print sys.argv

If I do:

 >python spam.py

it says can't open file 'spam.py'

Anyone know why?  I can open the file in NotePad without problem.



More information about the Tutor mailing list