Wwww


#1

while guesses_left > 0:
    guess = int(raw_input("Your guess: "))
    guesses_left -= 1
    if guess == random_number:
        print "You win!"
        break
    elif guesses_left > 0:
        print 'Guess again.'
else:
    print "You lose."

#2

you have a question? an exercise you are stuck at? an error message?


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.