```
from random import randint
# Generates a number from 1 through 10 inclusive
random_number = randint(1, 10)
guesses_left = 3
# Start your game!
while guess_left >= 0:
guess = int(raw_input("Your guess: ")
if guess == random_number:
print "You win!"
break
guesses_left -= 1
else:
print "You lose."
```

This gives an error:

```
File "python", line 10
if guess == random_number:
^
SyntaxError: invalid syntax
```

Can anybody point out where I went wrong? Thanks.