Friday, 13 September 2013

Combine multiple Booleans and Check if any are true in python

Combine multiple Booleans and Check if any are true in python

Title is pretty self explanatory. I want a condition to be satisfied if
any of 16 different variables are true, but I feel like there has to be a
better/cleaner way to do it than typing out if A = True or B = True ....
etc etc. Is there?

No comments:

Post a Comment