First python program, syntax error in while loop

John Gordon gordon at panix.com
Fri May 3 13:37:56 EDT 2013


In <mailman.1272.1367602030.3114.python-list at python.org> =?UTF-8?B?Q2hyaXMg4oCcS3dwb2xza2HigJ0gV2Fycmljaw==?= <kwpolska at gmail.com> writes:

> 1. post full tracebacks.

I almost responded with the same advice, but in this case the full
traceback doesn't really tell us anything more:

      File "foo.py", line 11
        while guess != number:
            ^
    SyntaxError: invalid syntax

-- 
John Gordon                   A is for Amy, who fell down the stairs
gordon at panix.com              B is for Basil, assaulted by bears
                                -- Edward Gorey, "The Gashlycrumb Tinies"




More information about the Python-list mailing list