Learn Python 2 Rock, Paper, Scissors

I wasn’t sure whether to include my whole code or not, so I included an excerpt. My issue occurs when I try to run this. For the first, elif statement, the report indicates that I have invalid syntax. I checked against the hints, but it looks identical to me. Does anyone have advice on how to check the syntax?

options = ["ROCK", "PAPER", "SCISSORS"]
message = {"tie": "Yawn it's a tie", "won": "Yay you won", "lost": "Aww you lost!"}

def decide_winner(user_choice, computer_choice):
  print "Your choice is %s" % (user_choice)
  print "My choice is %s" % (computer_choice)
  if user_choice == computer_choice:
  	print message["tie"]
	elif user_choice == options[0] and computer_choice == options[2]:
		print message["won"]
	elif user_choice == options[1] and computer_choice == options[0]:
		print message["won"]
	elif user_choice == options[2] and computer_choice == options[1]
		print message["won"]
1 Like

The elif is in the same block scope as the print statement before it. Syntax error.

1 Like