<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body><div style="text-align: left;">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.<br><br>Au<br></div><br><br><br><hr id="stopSpelling">> From: pine508@hotmail.com<br>> To: tutor@python.org<br>> Date: Thu, 24 May 2007 15:30:34 -0400<br>> Subject: Re: [Tutor] trouble with if<br>> <br>> >I'm not sure what the whole indentation thing is for. And now I'm having <br>> >trouble with the if statement things.<br>> <br>> Maybe your if statement troubles have been solved by others by now, but I'll <br>> just add that "the indentation thing" is a vital feature of Python, it is <br>> the way to separate code blocks. Other languages uses other means, like <br>> curly braces, etc. I get the sense those who like Python enjoy indentation <br>> because it forces the code to be quite readable, and I agree. See this:<br>> <br>> http://www.diveintopython.org/getting_to_know_python/indenting_code.html<br>> <br>> Also, as mentioned previously, keep in mind that 2 is not the same as "2" <br>> and "=" is not the same as "==". The single "=" is used to assign names to <br>> objects, whereas the == is for evaluating something, so for if statements <br>> use == and not =. Also note you can put "and" along with if, so you can say<br>> <br>> if x == "mom" and y == "dad":<br>> print "my parents"<br>> <br>> and lots of other stuff.<br>> -Che<br>> <br>> _________________________________________________________________<br>> PC Magazine’s 2007 editors’ choice for best Web mail—award-winning Windows <br>> Live Hotmail. <br>> http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HM_mini_pcmag_0507<br>> <br><br /><hr />Add some color. Personalize your inbox with your favorite colors. <a href='www.windowslive-hotmail.com/learnmore/personalize.html?locale=en-us&ocid=RMT_TAGLM_HMWL_reten_addcolor_0507' target='_new'>Try it!</a></body>
</html>