Super-newbie needs help!

Matt Gerrans mgerrans at ix.netcom.com
Wed Nov 28 17:00:50 EST 2001


Looks like the only problem is indentation, which is very important in Python.
If you indent the two lines after the while, it should work fine.   Like so:

total = 100
sum = input ("Enter your number. ")
while sum < total:
   print "You haven't reached 100 yet!"
   sum = input ("Give me another number ") + sum
print "Ok, you got me!"


- mfg





More information about the Python-list mailing list