Re: Rock Paper Scissors Code Bug?
Chris Angelico via Python-list <[email protected]> Tue, 9 Dec 2025 05:35:47 +1100
| Newsgroups | gmane.comp.python.general |
|---|---|
| Message-ID | <CAPTjJmryphde_51FnvUrsghE0ZKD8kG-wNJLzcfJkWeqQbbmrA@mail.gmail.com> |
On Tue, 9 Dec 2025 at 05:29, via Python-list <[email protected]> wrote: > > I coded Rock, Paper, Scissors. I added the randomness, made it loop at the user's request, added win code, no problems there. I changed some strings to F-strings to practice using them, and now the first "elif" in my if loop (player chooses rock, bot chooses paper) doesn't work. Any help ideas? I checked syntax, no error messages other than mine that I added > Pasting code below the line: > > elif player_choice == "Rock " and choice == "Paper": You did a great job of pinning down where the problem is! Now all you need to do is stare at this one line until you see a problem. Space - the final frontier! :) ChrisA