He can explain how it works, can you?
Posted in Family on March 9th, 2007My little brother Joel (11) and I made this.
-
import random
-
number = random.randint(1,100)
-
guess = int(raw_input("enter a number"))
-
while guess != number:
-
if guess > number:
-
print "Too high!"
-
if guess < number:
-
print "Too low!"
-
guess = int(raw_input("enter a number"))
-
print "You Win!!!!!!"
It’s been expanded since the copy I have to limit the number of guesses you get. (He’s carrying it around on his flash drive)