I'm trying to learn Python by making simple programs. One idea I had was to create a program which loops as long as conditions are not met. Here is the code:
print("What would you like to do?")
action = input("a. eat it b. cook it c. toss it\n>").lower()
while action != "a" or "b" or "c":
print("That is not one of your options.")
action = input(">")
if action == "a":
print("You eat it.")
elif action == "b":
print("You cook it.")
elif action == "c":
print("You throw it away.")
It's supposed to continue the loop and reask for a response as long as a, b, or c are not entered. The problem is that even after I enter a, b, or c, it still tells me that that it's not one of the options (that is, it still remains in the while loop even though the conditions for exiting the loop seem to be met.) Why is action not being assigned the value that I input so as to exit the loop?