Here is my code, I'm testing this for a game but need to at least get the basic mechanics down-
name = input("What is your name? ")
age = input("Welcome! How old are you? ")
print ("Hello, ", name, ", you are ", age, " years old, correct?")
print ("If so, type YES. If not, type NO.")
verifyNameAge = input("Input here: ")
if verifyNameAge == "yes" or "Yes" or "YES":
print ("Thank you for verifying.")
else:
print ("Restarting program.")
I expected that when I put in "no" into the input it would print "closing program", but it prints the if result (Thank you for verifying)