sorry if this is a bad question.
I am trying to create a simple tic-tac-toe game.
First, I want to have the user choose either X or O and verify they entered one of these letters. Below is my attempt to do that. I am encountering the issue that the while loop is still running even thought the user entered a X or an O.
There is probably another way to solve this but I am hoping to figure out why this isn't working. Since I can't figure it out it means I am misunderstanding some concepts and I would like to understand them.
def XorO():
response = input('Would you like to be X or O?')
while response != 'X' or 'O':
print("Please input either X or O")
response = input('Would you like to be X or O?')
Thank you!