Oops, try again.
Your code looks a bit off. Check the Hint if you need help! Your
code threw the following error: invalid syntax (python, line 6)
After looking through the other help topics, it appears that line 6 (if guess == random_number:)should be correct.
from random import randint random_number = randint(1, 10) guesses_left = 3 while guesses_left > 0: guess = int(raw_input("Your guess:") if guess == random_number: print "You win!" break guesses_left -= 1 else: print "You lose!"