problem with the if statement and elif

CIouded 0ne ciouded0ne at
Sat Jan 18 20:59:00 CET 2003

no im not copying and pasting. i have tryed that before but now all i do is
just look at it and copy it down manually but here is an example that doesnt
work for me.

x = raw_input("Enter a number? ")
Enter a number? 0
if x == 0:
print "Hey good job"
elif x > 0:
print "Bad job"
print "Oh well"

then the code just stops and doesnt run or print anything at all? why is this 
this is basically straight from the tutorial i think but yea thats a sample and
it doesnt work ever ;(

More information about the Python-list mailing list