When I receive a prompt to enter a number between 1 and 3, and I input any of those numbers, the terminal would repeatedly display the message 'Please choose a number between 1 and 3.' Could you explain why this behavior occurs? Thanks!
def load():
conversion_question = int(input("Enter 1 to convert USD to MXN\n\
Enter 2 to convert MXN to USD\n\
Enter 3 to terminate"))
while True:
if conversion_question not in {1 or 2 or 3}:
print("Please choose between 1 and 3")
elif conversion_question == 1 or conversion_question == 2:
return currency_conversion()
elif conversion_question == 3:
print("Come back soon!")
break