Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #24625
| Path | csiph.com!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail |
|---|---|
| From | Sergi Pasoev <s.pasoev@gmail.com> |
| Newsgroups | comp.lang.python |
| Subject | Re Following syntax error in Mac OX10.7 Terminal |
| Date | Thu, 28 Jun 2012 21:30:42 +0400 |
| Organization | Aioe.org NNTP Server |
| Lines | 15 |
| Message-ID | <871ukzs5rx.fsf@gmail.com> (permalink) |
| NNTP-Posting-Host | MNfEkO4nzJ1srxGsEHAbhQ.user.speranza.aioe.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| X-Complaints-To | abuse@aioe.org |
| X-Notice | Filtered by postfilter v. 0.8.2 |
| Cancel-Lock | sha1:4G5uSje8InSDQCRYTAU+6WPlvgE= |
| Xref | csiph.com comp.lang.python:24625 |
Show key headers only | View raw
You just have to consider that indentation matters in Python, so you
have to type the code in Python interpreter as you have written it
below, that is, press Tab before each line when you are inside the
'while (or any other like for, if, with, etc.) block.
a=0
while a<10:
a=a+1
print a
I can guess from your message that you aren't aware of one very
important Python feature, and maybe you also didn't willingly choose to
learn Python2 instead of Python3 ? In this case I would advise you to
consider both versions before choosing.
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Re Following syntax error in Mac OX10.7 Terminal Sergi Pasoev <s.pasoev@gmail.com> - 2012-06-28 21:30 +0400
Re: Re Following syntax error in Mac OX10.7 Terminal David Thomas <dthomas86@me.com> - 2012-06-29 08:13 -0700
Re: Re Following syntax error in Mac OX10.7 Terminal MRAB <python@mrabarnett.plus.com> - 2012-06-29 16:21 +0100
Re: Re Following syntax error in Mac OX10.7 Terminal David Thomas <dthomas86@me.com> - 2012-06-29 08:58 -0700
Re: Re Following syntax error in Mac OX10.7 Terminal Andrew Berg <bahamutzero8825@gmail.com> - 2012-06-29 21:05 -0500
Re: Re Following syntax error in Mac OX10.7 Terminal David Thomas <dthomas86@me.com> - 2012-06-29 08:58 -0700
Re: Re Following syntax error in Mac OX10.7 Terminal Ben Finney <ben+python@benfinney.id.au> - 2012-06-30 02:02 +1000
csiph-web