Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #24626
| Path | csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!204.52.135.9.MISMATCH!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <bahamutzero8825@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.006 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'python,': 0.02; 'cpython': 0.05; 'interpreter.': 0.07; 'loop.': 0.09; 'subject:error': 0.11; 'indent': 0.16; 'received:209.85.161.174': 0.16; 'subject:Mac': 0.16; 'wrote:': 0.17; 'windows': 0.19; '"",': 0.22; 'header:In- Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'important.': 0.27; '>>>>': 0.29; 'indentation': 0.29; 'error': 0.30; 'url:python': 0.32; 'file': 0.32; 'to:addr:python-list': 0.33; 'tutorial': 0.33; 'hi,': 0.33; 'received:google.com': 0.34; 'expected': 0.35; 'pm,': 0.35; 'received:209.85': 0.35; 'next': 0.35; 'but': 0.36; 'message-id:@gmail.com': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'space': 0.39; 'received:192.168': 0.40; 'header:Received:5': 0.40; 'thomas': 0.62; 'skip:6 10': 0.63 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=ZbS57odrS9JuqM8X/0lqsrmqFEkF22elMxCP14etejE=; b=l2Vu1SSMW5IB7XAJr+JUI4QsaSm9J22+ecQ5ARbwsbF/vLnsE1LV3p2wXRkYkS6pIi 4PG97crPBPCBjMt6ZKrDBJ5VX4c09r1E9dfzy+fF6y9S0XxyGeva9adowdkfPBwvZVOM b+hosx8HZqlCijIt3+ljQlQ8vfSV7tz0uDL3VSmFq2KYoifToyBm8fwq618ANwEbBy7j xUSHVkjCtjLACWd4eEgJhnyImFwRw7TokGx8K0wieBdFUYCl5Kw73Xi/CH/tSVlGBSIF MNn3isbJoBaKSNNCu7+DkdLMENBm7mLNiegDVTHCNcn4abVNwjIGCnPxLKptJbLW+CuZ mqAQ== |
| Date | Thu, 28 Jun 2012 12:31:47 -0500 |
| From | Andrew Berg <bahamutzero8825@gmail.com> |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 |
| MIME-Version | 1.0 |
| To | "comp.lang.python" <python-list@python.org> |
| Subject | Re: Following syntax error in Mac OX10.7 Terminal |
| References | <5eacd83f-03c9-43b5-b799-733aa576b1df@googlegroups.com> |
| In-Reply-To | <5eacd83f-03c9-43b5-b799-733aa576b1df@googlegroups.com> |
| X-Enigmail-Version | 1.4.2 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 7bit |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1614.1340904733.4697.python-list@python.org> (permalink) |
| Lines | 18 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1340904733 news.xs4all.nl 6981 [2001:888:2000:d::a6]:43242 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:24626 |
Show key headers only | View raw
On 6/28/2012 12:11 PM, David Thomas wrote: > Hi, > I have the following error regarding a loop tutorial found on http://www.sthurlow.com/python/lesson04/ > >>>> a=0 >>>> while a<10: > ... a=a+1 > File "<stdin>", line 2 > a=a+1 > ^ > IndentationError: expected an indented block You indented in the IDE, but not in the interpreter. Indent with a space or a tab. In Python, indentation is syntactically important. Everything indented will be part of that while loop; the next line that isn't indented will be considered not part of the loop. -- CPython 3.3.0a4 | Windows NT 6.1.7601.17803
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Following syntax error in Mac OX10.7 Terminal David Thomas <dthomas86@me.com> - 2012-06-28 10:11 -0700
Re: Following syntax error in Mac OX10.7 Terminal Andrew Berg <bahamutzero8825@gmail.com> - 2012-06-28 12:31 -0500
Re: Following syntax error in Mac OX10.7 Terminal David Thomas <dthomas86@me.com> - 2012-06-28 11:22 -0700
csiph-web