Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #24622
| From | David Thomas <dthomas86@me.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Following syntax error in Mac OX10.7 Terminal |
| Date | 2012-06-28 10:11 -0700 |
| Organization | http://groups.google.com |
| Message-ID | <5eacd83f-03c9-43b5-b799-733aa576b1df@googlegroups.com> (permalink) |
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
When I run Python IDE it seems to work fine. The following code is:
a=0
while a<10:
a=a+1
print a
Kind regards
Back to comp.lang.python | Previous | Next — 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