Super-newbie needs help!

Kragen Sitaker kragen at pobox.com
Wed Nov 28 16:47:04 EST 2001


snowcrash3 at hotmail.com (SnowCrash) writes:
> 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!"
> 
> HUH? i don't think its right, i've changed it about 4 times before
> posting it,

Looks great!

> and i've downloaded the Python 2.2 but can't seem to
> figure out how to use the thing to check my code.

What platform are you on?

Method 1:
Type 'python' at a command-line (shell, MS-DOS, MPW) prompt.
Type in the correct code you gave above.

Method 2:
Save the correct code you gave above to a plain ASCII text file.
Type 'python filename' at a command-line prompt.

Hope this helps.




More information about the Python-list mailing list