Super-newbie needs help!

Luke LLoeffler at home.com
Wed Nov 28 19:26:26 CET 2001


> total = 100
> sum = input ("Enter your number.")
> while sum < total:
> 	print "You haven't reached 100 yet!"
> 	sum = input ("give me another number") + sum

Worked for me!  Your version shouldn't matter.  Restart the python 
console to clean out any gunk from past sessions that may be messing up 
your variables without you knowing it.

Good luck.




More information about the Python-list mailing list