i completed this section successfully but am very bothered.
isn't this exercise meant to allow 3 guesses? but i everytime i submit the code and try 1 guess it says "You lose!". what am i not getting? the aim of this exercise? Thanks in advance!
from random import randint # Generates a number from 1 through 10 inclusive random_number = randint(1, 10) guess = int(raw_input("Your guess: ")) guesses_left = 3 # Start your game! while guesses_left > 0: if guess == random_number: print "You win!" break guesses_left = guesses_left-1 else: print "You lose!"