I am new at coding and trying to make a rock, scissors paper game but according to the following code, even if I type "rock" for example input goes into first condition and give me "invalid input" output which should not happen if I am writing the code correctly, so where is my mistake ? Thanks in advance
while True:
u1 = input("do yo want to choose rock, paper or scissors?")
u2 = input("do you want to choose rock, paper or scissors?")
if u1 != ('quit' or 'scissors' or 'rock' or 'paper'):
print("Invalid input! You have not entered rock, paper or scissors, try again.\n")
elif u2 != ('quit' or 'scissors' or 'rock' or 'paper'):
print("Invalid input! You have not entered rock, paper or scissors, try again.\n")
elif u1 == 'quit' or u2 == 'quit':
break
elif u1 == u2:
print("It's a tie!\n")
elif u1 == 'rock':
if u2 == 'scissors':
print("Rock wins!\n")
else:
print("Paper wins!\n")
elif u1 == 'scissors':
if u2 == 'paper':
print("Scissors win!\n")
else:
print("Rock wins!\n")
elif u1 == 'paper':
if u2 == 'rock':
print("Paper wins!\n")
else:
print('Scissors wins!\n' )