I'm having some serious issues with getting the 'or' operator to work with strings in python 3.2
My code is similar to this:
def choose_colour():
cmd = input("Enter command here: ")
if cmd != ("green") or ("blue") or ("yellow"):
choose_colour()
if cmd == ("green"):
colour = ("g")
if cmd == ("blue"):
colour = ("b")
if cmd == ("yellow"):
colour = ("y")
print (colour)
choose_colour()
However if I enter either one of these colours or not, it still repeats the 'choose_colour' function.
What am I doing wrong?