in
PYL-R17142035 [
2036 x
2037 for x in score_vars.split(" ")
2038 if (x != "double" and x != "in_out" and x != "varchar(100)")2039 ]
2040 )
2041 end_block = (
To check if a variable is equal to one of many values, combine the values into a tuple and check if the variable is contained in
it instead of checking for equality against each of the values.
This is faster, less verbose, and more readable.
if x == 1 or x == 2 or x == 3:
do_something()
if x in (1, 2, 3):
do_something()