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()
print(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:
To share your code with others, you can simply link to your repl or paste and format the code into your post!
Linking to a repl
The easiest way to share your code is by linking to your repl. You can find the link by clicking on your repl title, clicking the three dots, selecting “Cover page,” and copying the cover page URL.
NOTE: only share repl join links or use the invite button with people you trust!
[Kapture 2022-06-23 at 16.51.07]
Sharing short code samples
Share a snippet of your cod…
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.
3 Likes
system
Closed
July 21, 2023, 8:35pm
6
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.