Could somebody give me a tip?
I cant figure out why my loop always goes to the else case and stops.
from random import randint # Generates a number from 1 through 10 inclusive random_number = randint(1, 10) guesses_left = 3 # Start your game! guess = int(raw_input("Your guess: ")) while guesses_left <= 0: if guess == random_number: print "You win!" break guesses_left -=1 else: print "You lose."