Compare multiple variables to the same value in "if"?
What about this:
if all(x >= 2 for x in (A, B, C, D)):
print A, B, C, D
This should be helpful if you're testing a long list of variables with the same condition.
Another idea:
if min(A, B, C, D) >= 2:
print A, B, C, D
I'd probably write this as
v = A, B, C, D
if all(i >= 2 for i in v):
print v