2011-02-12, 11:04 PM
XTOTHEL Wrote: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"
You can't have 2 else statements in a definition. Its okay, I'll just copy it from a friend or something.. Thanks for trying.

