In Python, is it possible to test a variable against multiple values, i.e. a shorter way of writing:
if (x=="a") or (x=="b") or (x=="c") ...
like maybe: if x=="a" or "b" or "c":
?
In Python, is it possible to test a variable against multiple values, i.e. a shorter way of writing:
if (x=="a") or (x=="b") or (x=="c") ...
like maybe: if x=="a" or "b" or "c":
?