I'm trying to run some function if a list of booleans is true. My list consists of boolean functions.
list = [file.endswith('05',21,22), file.endswith('11',21,22),
file.endswith('17',21,22), file.endswith('21',21,22),
file.endswith('23',21,22)]
if any(True in list) == True:
# do something
Currently, the if clause gives me an error
if any(True in list) == True:
TypeError: 'bool' object is not iterable
Not really sure how to fix it.
list.