SyntaxError: invalid syntax

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

"DIBS" <max at> wrote:

> >>> python
>     File "<stdin>", line 1
>        python
>                     ^
> >>>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:


More information about the Python-list mailing list