I am trying to get a conditioned while with or statements for an assignment for a game programming class. I am trying to use a loop something like this. They are not exactly like this, but it is the same conditions for the while statement.
tempstr = input("Type B ")
while tempstr != "B" or tempstr != "b":
tempstr = input("Type anything ")
I have also tried.
tempstr = input("Type B ")
while tempstr == "B" or tempstr == "b":
tempstr = input("Type anything ")
As well as.
while tempstr == "B" or tempstr == "b":
tempstr = input("Type anything ")
I've checked that tempstr is set to B or b, and they still continue to ask for an input instead of just ending the program.