I am trying to design a condition yes/no statement questions and I cannot figure out what I am doing wrong :(
name = input("What is your name? ") print ("Hello " + name + ", nice to meet you. ") answer = input("Do you want to identify a mineral? (y/n)") if answer == "y" or "Y": print ("Great," + name + " ,let's get started") elif answer == "n" or "N": print ("Ok," + name + " ,come back when you have a mineral to identify")
buran write Jan-13-2021, 06:57 PM:
Please, use proper tags when post code, traceback, output, etc. This time I have added tags for you.
See BBcode help for more info.
Please, use proper tags when post code, traceback, output, etc. This time I have added tags for you.
See BBcode help for more info.