I printed the random number before guessing and got stuck My code always makes me enter 3 numbers and i lost every time even when i'm right. Please help i can't find something wrong
from random import randint random_number = randint(1, 10) print random_number guesses_left = 3 while guesses_left > 0: guess=raw_input("Your guess: ") if guess == random_number: print "Congratulations! You win!" break else: guesses_left = guesses_left - 1 else: print "You lose!"