[Tutor] Real newbie - python can't open spam.py
kent37 at tds.net
Sat Oct 29 23:11:44 CEST 2005
Michael Rowan wrote:
> 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. 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.
Is spam.py in the current directory when you type the command? If not, cd to the directory containing spam.py. What is the exact error message you get?
More information about the Tutor