Need help (beginner)

Question: whats wrong with my code pleaseee

Repl link:

def get_choices():
  player_choice = input("enter a choice!!! (rock, paper, scissors: ")
  computer_choice = "paper"
  choices = {"player": player_choice, "computer": computer_choice}
  return choices
  choices = get_choices()

Hey, @SophiaTamlin welcome to the forums!

Can you please provide a link to the repl? This way it is easier for staff and members of the community to help you!

Also see this guide on how to share your code:

i posted my code though

Yes, but your indentation seems to be off, so it would be easier to see your repl so we could know how it’s actually indented.

Assuming the code copied properly into Ask, the problem is that you need to unindent everything after your return statement. Otherwise, it never runs your function.


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