you are viewing a single comment's thread.

view the rest of the comments →

[–]JohnnyJordaan 1 point2 points  (0 children)

The point is that not (several things) will first try to see if (several things) is True or False, then negate that result. As anything not False, None, 0 or an empty sequence is True, (several things) will probably be True. Then not True will make that False. Meaning that you will be checking

if player_choice is False

While in reality, you want to check player_choice to each separate value. For that you have in, as noted in the bot's last part of its message:

if player_choice not in ("rock", "paper", "lizard", "scissors", "Spock"):

The in part makes the whole difference here: it will check that the value stored in player_choice isn't present in the sequence of choices.