Can this be shortened?
Ok, I am completely new to computer coding, and I have been learning python through this amazing app and website for less than a month. Now I have a question about something I am putting together. Here is the code: x = input("Do you want to try again? Yes or no? ") if x == "yes": print("\n") continue elif x=="YES": print("\n") continue elif x=="Yes": print("\n") continue elif x=="YEs": print("\n") continue elif x=="YeS": print("\n") continue elif x=="yES": print("\n") continue else: print("\n") print("Okay, that's fine, but don't ask again.") break As you can see I am trying to accept all forms of "yes" no matter how the user inputs it. Is there an easier way to do this, or do developers have to put in every form of an answer? If that doesn't make sense, what if I wanted to accept "sure" as an acceptable answer would I have to do another elif: for that too? Thanks in advance