2011-02-12, 10:46 PM
Alley Wrote:No, doesn't work, but thanks for the help! I might just have to break down and actually read this teachers horrible explanations.
now?
Code:
from random import randint
rnum = randint(1,20)
for i in range(1, 4):
guess = input("Guess a number")
if guess != rnum:
print "Guess again!"
else:
print "You got it!"
break
else:
print "Used up all 3 guesses"
