I know there's lots of documentation about the OR operator, but I cant get it to work in my Python Code. I am a beginner so lots of python syntax/methods are new to me.
def getDecision():
x = input()
while x != ("a" or "b"):
print("Please input \"A\" or \"B\"")
x = input()
return x
Currently it only checks if x is not equal to A, it seems to ignore B. This is different to other questions as if I write
while (x != "a") or (x != "b")
That will it will go with the loop if A or B is typed in
Many Thanks