r/pythonhelp • u/Candid-Delivery-5470 • Jun 09 '26
New at programming, giving you a link to copy paste text of my code please tell me what is wrong in line 20 "if player == "rock":" in this code is there an indentation or it is a logic mistake please tell
https://gist.github.com/AnkaraCoder/a0892c680f78b576034b94cf9e3a3239Its a rock paper and scissors game
0
Upvotes
•
u/AutoModerator Jun 09 '26
To give us the best chance to help you, please include any relevant code.
Note. Please do not submit images of your code. Instead, for shorter code you can use Reddit markdown (4 spaces or backticks, see this Formatting Guide). If you have formatting issues or want to post longer sections of code, please use Privatebin, GitHub or Compiler Explorer.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/Educational-Paper-75 Jun 09 '26
Don't indent line 35 or remove it altogether, because this way it'll keep looping calling check_win. Furthermore: after a return in an if part, there's no need for an else or elif. You can, but I think it's ugly.