Im trying to create a basic rock, paper, and scissors game. At first I was using == signs instead of in but a part of the code would not proceed after that step. I changed the == to in as someone did in another question, however, the rest of he code now doesnt work. For example, if I input rock and rock it would output tie but if I input rock and paper there would be no output. I am pretty confident the problem is somewhere in the if and elif statements.
input_a = input("player a enter rock, paper, or scissors")
input_b = input("player b enter rock, paper, or scissors")
if input_a and input_b in ("rock","paper","scissors"):
if input_a == input_b:
print("it is a tie")
elif input_a == "rock" and input_b == "scissors":
print("a wins")
elif input_a == "paper" and input_b == "rock":
print("a wins")
elif input_a == "scissors" and input_b== "paper":
print("a wins")
else:
print("invalid input")