I am trying build this thing where: if you type wrong answer the program will run again and if you write correct one it should stop but even after writing correct statement it is not stopping
EvenOdd = 1
def choosegame():
while True:
global gname
gname = input("\nWhich game would you like to play?\n 1.Even&Odd\n OR \n 2.Three lines\n\tType the number of the game to start\n>>>")
if "1" or "Even&Odd" or "even&odd" or "evenodd" or "even" or "odd" in gname:
gname = EvenOdd
print("odd even game passed")
break
elif "2" or "Three" or "three" or "Lines" or "lines" in gname:
print("threeline game passes")
break
else:
print("wrong word")
return choosegame
choosegame()