I'm building a budget tool. If the user were to enter the wrong number for the budget, the whole program crashes and gives an error message. I would like to add a loop or something else to have the program loop back and ask the question again, rather than it crashing if given intangible information. I've tried while loops but it doesn't seem to work
while answer != "yes" or answer == "Yes" or answer == "YES":
print("Hmmm, okay. Try again.")
answer = input("Ready to budget your travel expenses? ")
budget = int(input("What's your budget? $")**