I was working on a gladiator text adventure type game to help learn python. The only programming experience I have had is some basic c++ a few years ago. The code is working like expected for both yes and no but when you enter something else it is still executing the body even though the test condition is not true so it still just displays "You chose" and whatever you chose no matter what you typed. Through some research I seen someone on here say empty strings are always evaluated to true? If that is the case how do I get around this. I was thinking I could make a variable equal to each string I am testing for but is their another way to go about this?
#Intro
print("Please enter your name Brave Challenger")
name = input("")
print (name,"Are you ready to battle")
#Selecting yes or no
print ("Please enter yes or no")
#storing yes or no or other inside of variable
selection = input()
#Displaying whether selection is yes, no, or other
if selection == "yes" or "YES" or "Yes":
print ("You chose", selection)
elif selection == "no" or "NO" or "No":
print ("You chose", selection)
else:
print("You must choose Yes or No")