SyntaxError: invalid syntax

Fredrik Lundh fredrik at pythonware.com
Tue Dec 27 10:45:08 CET 2005


"DIBS" <max at legs.com> wrote:

> >>> python sudoku.py
>     File "<stdin>", line 1
>        python sudoku.py
>                     ^
>
> >>>SyntaxError: invalid syntax

> Thanks for your help.
> The above is the extact message.

that looks like the Python interpreter window, not the Windows command-
line window.

To run complete Python programs, type "python filename" in the Windows
command-line window (or double-click on filename from the explorer).

the FAQ has more information:

http://www.python.org/doc/faq/windows.html#how-do-i-run-a-python-program-under-windows

</F>






More information about the Python-list mailing list