I am creating a small Rock Paper Scissors game and I want to make sure that if a user types in a word that isn't "rock" "paper" or "scissors", my code prints something that tells the user that their input it wrong and to try again.
elif player_choice != 'rock' or 'paper' or 'scissors' :
print('invalid input, please try again.')
But for some reason, everytime I run my code, it prints "invalid input, please try again" no matter what I type, it always prints that. Please help and tell me why.
Aucun commentaire:
Enregistrer un commentaire