I defined the following code for "Guess the bird game"
print("Hello, welcome to the guess the bird game! You can guess 3 times. GOOD LUCK!")
bird = "robin"
guess_bird = input('First try to guess the bird, please fill in your answer:')
if guess_bird == bird:
print("Congratulations, you have it right!")
else:
guess_bird = input("Unfortunately.. Once again, don't give up!"
if guess_bird == bird:
print("Congratulations, you have it right!")
else:
guess_bird = input("Last try to guess the bird, you can do it!")
if guess_bird == bird:
print("Congratulations, you have it right!")
else:
print("Sorry, no more tries...")
However, I get an error... How can I fix this? The error is:
File "<ipython-input-6-787643515908>", line 12
if guess_bird == bird:
^
SyntaxError: invalid syntax