<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><STRONG><FONT face="Franklin Gothic Medium"
size=4></FONT></STRONG> </DIV>
<DIV><STRONG><FONT face="Franklin Gothic Medium" size=4>I am having a problem
getting the IF/ELIF to cooperate with me. I am using a sample
from: Learn to program By Alan Gauld. I keep
getting this msg: </FONT></STRONG></DIV>
<DIV> </DIV>
<DIV><STRONG><FONT face="Franklin Gothic Medium" size=4>IndentationError:
unindent does not match any outer indentation level (<pyshell#3>, line
3)</FONT></STRONG></DIV>
<DIV> </DIV><STRONG><FONT face="Franklin Gothic Medium" size=4>
<DIV><BR> But When I don't indent I get:
<BR>
SyntaxError: invalid
syntax<BR>_________________________________________________________________________________</DIV>
<DIV> </DIV>
<DIV>This is the sample I was trying:</DIV>
<DIV> </DIV>
<DIV>value = 100<BR>if value > 10:<BR> print 'This is
OK'<BR>elif value > 50: #This is where I get
that msg (IndentationError)<BR> print "Whoops, this is never
seen'<BR>else<BR> print ' nor is this'</DIV>
<DIV> </DIV>
<DIV>______________________________________________________________________________</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> I CAN simply us the If format and all works it is just a little
confusing!<BR> Could it be that I have mesed with my default sttings
on Indentation? Or am I just to thick to see the obvious? any help ?
Thanks Steve Hulett</FONT></STRONG></DIV></BODY></HTML>