[Tutor] trouble with indents

Brian van den Broek broek at cc.umanitoba.ca
Mon May 28 06:37:01 CEST 2007


adam urbas said unto the world upon 05/28/2007 12:24 AM:
> Thanks for the clarification, but I'm still a tad confused.  I'm
> not sure when to indent.  I understand that it has to be done.
> That link was really confusing.  Very newb non-friendly.  Arrg...
> That site is doom.  So confusing.  I need somewhere to start from
> the beginning.  This site uses all kinds of big words and doesn't
> explain things in a clear manner.  Oh well.  Thanks for the help,
> though.Au> From: pine508 at hotmail.com> To: tutor at python.org> Date:
> Thu, 24 May 2007 15:30:34 -0400> Subject: Re: [Tutor] trouble with
> if> > >I'm not sure what the whole indentation thing is for.  And
> now I'm having > >trouble with the if statement things.> > Maybe
> your if statement troubles have been solved by others by now, but
> I'll > just add that "the indentation thing" is a vital feature of
> Python, it is > the way to separate code blocks.  Other languages
> uses other means, like > curly braces, etc.  I get the sense those
> who like Python enjoy indentation > because it forces the code to
> be quite readable, and I agree.  See this:> >
> http://www.diveintopython.org/getting_to_know_python/indenting_code.html>

<snip>

Adam,

I think Dive Into Python is quite good, but as a second book or a 
first book for someone with a bit more experience of other languages 
than it seems like you might have.

The first think I read was <http://www.ibiblio.org/obp/thinkCSpy/> 
which is aimed at high school students. It might move a bit slowly for 
some tastes, but it sounds like DIP is moving a bit too fast. The full 
text is free; give it a look.

Best,

Brian vdB


More information about the Tutor mailing list