I was wondering if you can pass an array of conditions as a condition, specifically in Python?
for example:
conditions = [True, False, True, True, False]
if conditions:
<do stuff>
Python doesn't throw an error when I give it something like this, but I'm not sure if it's doing what I want it to do. Is it actually comparing the whole list? And if so, is it in an and
or or
fashion? Or is it doing something different, like only comparing the first item?