I am getting the error code for line 10 that there is incorrect sytnax. It looks okay to me and matches what others have on this question, so I must be missing something.
Also, I started by breaking the loop by adjusting the count to equal 4 in place of the break, but took that out. That seems like it should work instead of using a break, right?
from random import randint # Generates a number from 1 through 10 inclusive random_number = randint(1, 10) guesses_left = 3 # Start your game! 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."