> 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
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
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
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