Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!news-out.readnews.com!transit4.readnews.com!panix!gordon From: John Gordon Newsgroups: comp.lang.python Subject: Re: First python program, syntax error in while loop Date: Fri, 3 May 2013 17:37:56 +0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Lines: 17 Message-ID: References: <24c5856e-a30a-41bd-aa4a-0e594734e1f8@googlegroups.com> NNTP-Posting-Host: panix1.panix.com X-Trace: reader1.panix.com 1367602676 21828 166.84.1.1 (3 May 2013 17:37:56 GMT) X-Complaints-To: abuse@panix.com NNTP-Posting-Date: Fri, 3 May 2013 17:37:56 +0000 (UTC) User-Agent: nn/6.7.3 Xref: csiph.com comp.lang.python:44675 In =?UTF-8?B?Q2hyaXMg4oCcS3dwb2xza2HigJ0gV2Fycmljaw==?= 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@panix.com B is for Basil, assaulted by bears -- Edward Gorey, "The Gashlycrumb Tinies"