Efficient way of checking similar possible inputs?
What is the most efficient way to check an input that can be written in different ways without a repeated "or" function? (i. e. a shorter version to write:
if answer == "Yes" or answer == "yes" or answer == YES
Aucun commentaire:
Enregistrer un commentaire