I'm trying to create an error message for if the user doesn't input one of the options they are given, there are multiple options.
This is what I've tried so far:
if crypto_choice == 'BTC' or 'BCH' or 'ETH' or 'LTC' or 'XRP':
print("")
else:
print("Error: Choose BTC, BCH or ETH")
time.sleep(3)
quit()
For example: I set crypto_choice to 'trees' The program then continues to run normally, ignoring the else, and the variable stays as trees.
I'm new to python and programming so I'm sorry if I'm being stupid, thanks in advance to anyone that helps me.