Rock Paper Scissors - Indent issue?


#1

Having trouble on:
Rock Paper Scissors

Getting the below error msg which seems to hint at an issue with indenting, but I can't see it myself. Anyone have any ideas?
"$ python RPS.py
File "RPS.py", line 35
user_choice = raw_input("Make a
choice! Select R for Rock, P for P
aper, or S for Scissors: ")

IndentationError: unindent does not
match any outer indentation level
$

The code is below:


''' This is a rock, paper, scissors game...

'''

from random import randint
from time import sleep

options = ["R","P","S"]
LOSE = "You lost!"
WIN = "You win!"

def decide_winner(user_choice, computer_choice):
  print "You selected %s" % user_choice
  print "Computer selecting..."
  sleep(1)
  print "The computer selected %s" % computer_choice
  user_choice_index = options.index(user_choice)
  computer_choice_index = options.index(computer_choice)
  if user_choice_index == computer_choice_index:
  	print "It's a tie!"
  elif user_choice_index == 0 and computer_choice_index == 2:
    print WIN
  elif user_choice_index == 1 and computer_choice_index == 0:
    print WIN
  elif user_choice_index == 2 and computer_choice_index == 1:
    print WIN
  elif user_choice_index > 2:
    print "Invalid option selected."
    return
  else:
    print LOSE

def play_RPS():
	print "Welcome to Scissors, Paper, Rock!"
  user_choice = raw_input("Make a choice! Select R for Rock, P for Paper, or S for Scissors: ")
  sleep(1)
  user_choice = user_choice.upper()
  computer_choice = options[randint(0,len(options)-1)]
  decide_winner(user_choice, coomputer_choice)

play_RPS()


#2

inside your play_RPS function the print line and the line below where you define user_choice have a different indent level for no obvious reason


#3

Thanks for that, you were right