Invalid synthax

Hi this is my code for rock, paper, scissors proyect. It continuosly appears the error "Invalid syntax in line 22 and when I see the video walkthrough it is exactly the same as mine but it doesn’t work. PLS HELP

Welcome to Rock-Paper_Scissors game given to you thanks to the sleepless hours of its creator to develop it.

Some words of our creator just before we star:

Hope you like it folks!

print “Shall we begin?”

from random import randit

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 choose %s” % user_choice

print “The IA chooses %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[1]

elif user_choice == options[2] and computer_choice == options[1]:

print message[1]

else :

  print message["lost"]

def play_RPS():

print “Enter Rock, Paper, or Scissors”

user_choice = raw_input(“Enter Rock, Paper, or Scissors”).upper()

computer_choice = options[randit(0,2)]

decide_winner(user_choice, computer_choice)


Its a bit difficult to tell. When you pasted the code the indentation was lost as well as the line numbers. Can you specify where the line is?

Hi there!

I tried to format your code, but it doesn’t look like you pasted it in with the whitespace so the code is incorrect.

Can you please edit your original post, and re-paste the code with the indentation etc as you’re running it please? You’ll notice that I’ve added a single row of backticks (` ` ` ) to the start and end of your code. If you can re-paste your code between those, we should be able to help. :slight_smile:

hi! Thanks i’ve solved already!! thank you very muchs for your answers!!!