Stuck on 8


#1

from random import randint
guesses_left = 3
random_number = randint(1, 10)
while guesses_left > 0:
guess = int(raw_input('What is your guess?')
if guess == random_number:
print "Correct!"
break
else:
print "You lose"
guesses_left -= 1

This is the error I get
File "python", line 6
if guess == random_number:
^
SyntaxError: invalid syntax

So I have no idea how to indent my code on the forums.


#2

Missing a closing ).

```

Your code here

```