Python Principles
Python Q&A

How do you test several variables against a value?

Answer:

You can do it with the or keyword:

if a == 1 or b == 1 or c == 1:
    do_something()

Alternatively you can use in with a tuple:

if 1 in (a, b, c):
    do_something()

The latter is somewhat esoteric but shorter to type.