SyntaxError: invalid syntax

Steven D'Aprano steve at REMOVETHIScyber.com.au
Tue Dec 27 02:57:00 EST 2005


On Tue, 27 Dec 2005 07:40:12 +0000, DIBS wrote:

> I'm new to Python and I don't understand what I'm doing wrong.
> 
> I'm running windows xp.
> 
> In the command line window, I type:
> Python Sudoku.py
> 
> and I get the response"
> 
> SyntaxError: invalid syntax
> 
> If anyone cane help me I'd be very grateful.

Please post the *full* traceback of the error, not just the last
description.

For example, something like this:

>>> x = x+*9
  File "<stdin>", line 1
    x = x+*9
          ^
SyntaxError: invalid syntax


Just "SyntaxError" on its own is not enough to tell what is going on,
except to say that it sounds like a bug in the program you are trying to
run.


-- 
Steven.




More information about the Python-list mailing list