Errors on Rock, paper, scissors

edit: found the problem

Hi guys

I am getting these errors:

rock

I have copied the code from the walkthrough video. What is the problem?

Here is my code

#This program plays the game of rock-paper-scissors with the user. It asks the user for input and does a random choice of what the computer's hand is. It then compares these two and announces a winner.

https://www.codecademy.com/courses/learn-python/projects/rock-paper-scissors

from random import randint

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 "You selected: %s" % user_choice 
  print "The computer selected %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"]
  else:
    print message["lost"]
                                          
def play_RPS():
  user_choice = raw_input("Enter ROCK, PAPER, or SCISSORS: ").upper()
  computer_choice = options[randint(0, 2)]
  decide_winner(user_choice, computer_choice)
  
play_RPS()
1 Like