Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!newsfeed.datemas.de!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.061 X-Spam-Evidence: '*H*': 0.88; '*S*': 0.00; 'python,': 0.02; 'syntax': 0.04; 'error:': 0.07; 'python': 0.11; 'itself,': 0.16; 'received:74.208.4.195': 0.16; 'subject:Problem': 0.16; 'wrote:': 0.18; 'version.': 0.19; 'addition,': 0.20; 'url:view': 0.20; 'header:User-Agent:1': 0.23; 'error': 0.23; 'space.': 0.24; 'specify': 0.24; 'least': 0.26; 'code:': 0.26; 'header:In-Reply- To:1': 0.27; 'errors': 0.30; "i'm": 0.30; 'code': 0.31; 'lines': 0.31; 'assumes': 0.31; 'there.': 0.32; 'run': 0.32; 'text': 0.33; 'trouble': 0.34; 'subject:the': 0.34; 'message.': 0.35; 'subject:with': 0.35; 'problem.': 0.35; 'but': 0.35; 'really': 0.36; 'doing': 0.36; 'version,': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'that,': 0.38; 'subject:" ': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'read': 0.60; 'blank': 0.60; 'course.': 0.60; 'course': 0.61; "you're": 0.61; 'show': 0.63; 'url:png': 0.68; 'frequently': 0.68; 'invalid': 0.68; 'received:74.208': 0.68; 'url:i': 0.72; 'confusing': 0.84; 'game,': 0.84; 'url:imgur': 0.84 Date: Wed, 19 Jun 2013 17:32:53 -0400 From: Dave Angel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Problem with the "for" loop syntax References: <18f427ef-7a9a-413d-a824-65c9df430db3@googlegroups.com> In-Reply-To: <18f427ef-7a9a-413d-a824-65c9df430db3@googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Provags-ID: V02:K0:C+ZEXMC3CdyCg9FINkwRo2c6ccr4MXEzHhFSdci7LZU al541fExUHlDbHp4jiR3w/1foPDGUq4M843sYIW2CNhh3BTf3K MZ77vBKivBYDL9ZVHBGEKsLGknbbbFPRDeSysE4AN38gm0Z34L lsH/F+WGwRcsTjq1uLw9rfLPn4GWnEfcE7STfIsRv5ChaffNR+ YemnR//ETUu+1ctoJ+mWVoV374hdYyieOvoIriTFFzbvlJq9c2 kpia7Y36NRfsyLe3XLl5Q9T2HeYSEf5lDClzq/JW3eCx41eaVE HeA3QqQ3vcNHtbwE0CSVYopG7qfPGKxZuX2RACjd66QSUE9b5/ QtlGZtbY1sA6ROgpGi/o= X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 33 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1371677588 news.xs4all.nl 15881 [2001:888:2000:d::a6]:45520 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:48755 On 06/19/2013 05:14 PM, arturo balbuena wrote: > Hello guys... > I´m a begginer in Python, I'm doing a Hangman game, but I'm having trouble with this blank space. I would be greatful if you help me. :) > > Here's my code: > > http://snipplr.com/view/71581/hangman/ > > When I run the code it says: Invalid Syntax and this is the error: > > http://i.imgur.com/jKYOPMY.png > > http://i.imgur.com/ySoOZFR.png > > If you want us to read it, put it in your message. Show at least a few lines before and after the syntax error, and show the error itself, as text of course. Use copy/paste. Of course that assumes you're using a proper console/shell, and know how to use it. So if you have to ask about that, start there. In addition, specify the python version, and if appropriate, the OS and its version. Generally, you can find your own problem. Syntax errors that seem confusing are frequently really on the line before the line in which they're "discovered." -- DaveA