Say I have a bunch of variables that are either True or False. I want to evaluate a set of these variables in one if statement to see if they are
You should never test a boolean variable with == True (or == False). Instead, either write:
if not (var1 or var2 or var3 or var4):
or use any (and in related problems its cousin all):
if not any((var1, var2, var3, var4)):
or use Python's transitive comparisons:
if var1 == var2 == var3 == var4 == False: