Re: [Tutor] Just a Python formatting question

2005-06-10 Thread Alan G
> And all the lines that belong to the statement also. It does not matter if > is a nested sequence. Let me lighten you: > > for i in somelist: > do_something > do_something_else > if x==y: > inside the if clause > all statements go > with 4 spaces after the if l

Re: [Tutor] Just a Python formatting question

2005-06-09 Thread Alberto Troiano
Kristiano Don't worry about it. I'm sure everyone passed over this before. The identation errors are errors in the tabulation of a line Let's take your code in example >number=78 >guess=0 > >while guess != number: > guess=input ("Guess a number:") > if guess > number: > print "To

Re: [Tutor] Just a Python formatting question

2005-06-08 Thread Ertl, John
lto:[EMAIL PROTECTED] Sent: Wednesday, June 08, 2005 09:49 To: tutor@python.org Subject: [Tutor] Just a Python formatting question Hey guys, I'm pretty new to Python (using Mac Python 2.4.1) and have a question with formatting that I hope you can help me with. Sometimes, when I write c

[Tutor] Just a Python formatting question

2005-06-08 Thread Kristiano Ang
Hey guys, I'm pretty new to Python (using Mac Python 2.4.1) and have a question with formatting that I hope you can help me with. Sometimes, when I write code with Python (copied off tuts.), I get error messages and highlights of the word "else". Take for example: #plays the guessing game hig