Rock, Paper, Scissors help!


#1
def decide_winner(user_choice, computer_choice):
  print "You selected %s:" % user_choice
  print "Computer selecting..."
  sleep(1)
  print "Computer chose %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 "Its a tie"
	elif user_choice_index == 0 and computer_choice_index == 2:
    print WIN_MESSAGE
 	elif user_choice_index == 1 and computer_choice_index == 0:
    print WIN_MESSAGE
 	elif user_choice_index == 2 and computer_choice_index == 1:
    print WIN_MESSAGE

unexpected indent on line 13 but I thought it needed to be indented??? (Very new understanding on my end)


#2

yea, that line needs indent but not as much as you currently gave it, look at it:

Screenshot_2018-03-05_12-44-06


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.