I understand that when typing an invalid operator for the first time the while loop begins but after I type a valid operator after the loop begins, it doesn't seem to exit out of it.
Is it because I have multiple conditions , since it actually works if I only have one condition?
numb_1 = float(input("Enter the first number:"))
operator = input("Enter an operator:")
numb_2 = float(input("Enter the second number:"))
while operator != ("+") or operator != ("-") or operator != ("*") or operator != ("/"):
print("Invalid operator please try again.")
operator = input("Enter an operator:")
if operator == ("+"):
print(numb_1 + numb_2)
elif operator == ("-"):
print(numb_1 - numb_2)
elif operator == ("*"):
print(numb_1 * numb_2)
elif operator == ("/"):
print(numb_1 / numb_2)