I was trying to debug some Python code of mine and I can't seem to figure this out. Any ideas why this keeps repeating if I input the correct argument for the direction input variable?
direction = input("Type 'encode' to encrypt, type 'decode' to decrypt:\n")
while direction != "encode" or direction != "encrypt" or direction != "decrypt" or direction != "decode":
print("Please put in a valid direction!\n")
direction = input("Type 'encode' to encrypt, type 'decode' to decrypt:\n")
andinstead ofor.