New guy question
Glen Mettler
Glen.Mettler at home.com
Sat Jun 9 22:59:17 EDT 2001
> Based on the '>>>' prefix It looks like you're entering this into the
> python interpreter. In that context, to get the same behaviour, you
> would probably want to do something like "execfile('alook.py')" Try
> running "python alook.py" from the shell/dos command prompt, instead.
> It might be helpful to work through a tutorial. The one at
> www.python.org/doc/tut is pretty good, imo.
>
> Alex.
Actually, I am working thru a tutorial right now. I don't recall it saying
anything about the differences between the DOS window and the IDLE window.
In any case, I went to the DOS window and this is what I get:
>>> python alook.py
File "<stdin>", line 1
python alook.py
^
SyntaxError: invalid syntax
>>>
Glen
More information about the Python-list
mailing list