I'm trying to make a rock, paper, scissors game in python, and I'm trying to trying to write a piece of code that checks if the input is valid.
if choice_lower != "rock" or choice_lower != "paper" or choice_lower != "scissors":
print("invalid input")
The game works fine, however when I try to run it with this input check implemented, even if I input the correct input, the program still prints "invalid input". Any tips with this problem?
Aucun commentaire:
Enregistrer un commentaire