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
Kristiano, It is sometimes hard to tell the indentions in an email but it looks like your last line print "Just right" has a space in front of it. Python does not know what logical block the indented part belongs to. John Ertl -Original Message- From: Kristiano Ang [mailto:[EMAIL PR