I'm trying to make a program where if the user enters 'q' or 'quit' or 'Quit' the loop will break. I figured out how to do half of the problem but I've been stuck for over an hour with the rest.
text = ()
while text != 'q' or 'quit' or 'Quit':
print((text)[::-1])
text = input()
The code above won't end the loop when typing any of the keywords, but if i do only:
while text != 'q'
that works. How can I add the other two?
Thank you.