Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!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.017 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'friday,': 0.09; 'loop.': 0.09; 'second.': 0.09; 'subject:while': 0.09; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.10; 'subject:python': 0.11; 'columns': 0.16; 'subject: \n ': 0.16; 'wrote:': 0.17; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header :User-Agent:1': 0.26; 'raw': 0.27; 'chris': 0.28; 'indentation': 0.29; 'fri,': 0.30; 'code': 0.31; 'agree': 0.34; 'received:google.com': 0.34; 'third': 0.34; 'pm,': 0.35; 'received:209.85.220': 0.35; 'received:209.85': 0.35; 'should': 0.36; 'thank': 0.36; 'subject: (': 0.36; 'does': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'your': 0.60; 'subject': 0.66; '2013': 0.84; 'isaac': 0.84; 'won': 0.96 X-Received: by 10.182.162.10 with SMTP id xw10mr13377obb.17.1362154734811; Fri, 01 Mar 2013 08:18:54 -0800 (PST) Newsgroups: comp.lang.python Date: Fri, 1 Mar 2013 08:18:54 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=129.118.224.102; posting-account=DOyQBwoAAADIEpwWr89vk1x7RGFM33oc References: <118003ed-33f6-4d99-ac5e-99ec81921f45@googlegroups.com> User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 129.118.224.102 MIME-Version: 1.0 Subject: Re: Triple nested loop python (While loop insde of for loop inside of while loop) From: Isaac Won To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=ISO-8859-1 Cc: python-list@python.org 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: , Message-ID: Lines: 24 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1362154743 news.xs4all.nl 6977 [2001:888:2000:d::a6]:41477 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:40267 On Friday, March 1, 2013 7:41:05 AM UTC-6, Chris Angelico wrote: > On Fri, Mar 1, 2013 at 7:59 PM, Isaac Won wrote: > > > while c <24: > > > for columns in ( raw.strip().split() for raw in f ): > > > while d <335: > > > > Note your indentation levels: the code does not agree with your > > subject line. The third loop is not actually inside your second. > > Should it be? > > > > ChrisA Yes, the thiird lood should be inside of my whole loop. Thank you, Isaac