Path: csiph.com!usenet.pasdenom.info!news.etla.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!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.037 X-Spam-Evidence: '*H*': 0.93; '*S*': 0.00; 'syntax': 0.04; 'debugging': 0.07; 'fixed,': 0.09; 'will,': 0.09; 'brackets.': 0.16; 'cause.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:Problem': 0.16; '(you': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'guys': 0.24; 'helpful': 0.24; 'header:In- Reply-To:1': 0.27; 'am,': 0.29; 'errors': 0.30; 'message- id:@mail.gmail.com': 0.30; 'code': 0.31; 'posting': 0.31; 'figure': 0.32; 'quite': 0.32; 'open': 0.33; 'actual': 0.34; 'subject:the': 0.34; 'problem': 0.35; 'subject:with': 0.35; "can't": 0.35; 'received:google.com': 0.35; "didn't": 0.36; 'method': 0.36; 'error.': 0.37; 'list': 0.37; 'sometimes': 0.38; 'thank': 0.38; 'easiest': 0.38; 'to:addr:python-list': 0.38; 'subject:" ': 0.39; 'to:addr:python.org': 0.39; 'even': 0.60; 'real': 0.63; 'worth': 0.66; '20,': 0.68; 'yourself': 0.78; 'discovered': 0.83; 'cutting': 0.91; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=ic9pobEg8McrpB9ovRU5Yh+PyJPsCAMiD4smJOz7iUE=; b=iVSjofmeLs7LONtyban4olFqClbVW6CxwCgUiWX4sjkrGtAb0qkjHCiP2UYGf2znnB gpmqR0BvymXtZQtvg0bDPqLjYikx9hcHIREoYeHfQ6mnBxQgCrBNc+E9Wo3ymtPNw+MF KPfmq06lN85SQ6cEfajFAwnN+rGMclUOTKos9adRKKL9QVdnXrghsVVSuklIE4ggAZsO L6T1Bj7AYOdU1pNI+J0p6VKP8s9LuWtqot/MOAF5PEHoi5fbuxOGCfEP6X/6tdzFk43I GRRkSrECu7Ip2m2tEYU4YSV4Z2If3lfqIJGB4D2xdJJ2t8qJDvDsBQAROPznteD62q8P pXiQ== MIME-Version: 1.0 X-Received: by 10.221.4.4 with SMTP id oa4mr1543923vcb.70.1371690563368; Wed, 19 Jun 2013 18:09:23 -0700 (PDT) In-Reply-To: References: <18f427ef-7a9a-413d-a824-65c9df430db3@googlegroups.com> Date: Thu, 20 Jun 2013 11:09:23 +1000 Subject: Re: Problem with the "for" loop syntax From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 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: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1371690571 news.xs4all.nl 15902 [2001:888:2000:d::a6]:44200 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:48766 On Thu, Jun 20, 2013 at 11:02 AM, Arturo B wrote: > Fixed, the problem was in > HANGMANPICS > > I didn't open the brackets. > > Thank you guys :) General debugging tip: Syntax errors are sometimes discovered quite some way below the actual cause. The easiest way to figure out what's the real cause is to start cutting away unnecessary code until all that's left is the tiniest part that still has the error. This is also very helpful as a prerequisite to posting on a list like this, so even if you can't find the problem yourself by this method (you often will, though), it's well worth doing. ChrisA