checking values equal to 1 in python in one line code example Example: test multiple variables against a value python if 1 in (x, y, z):