The any() function takes an iterable (list, string, dictionary etc.) in Python.
The any() function returns the boolean value:
True if at least one element of an iterable is true
False if all elements are false or if an iterable is empty
Example:
some_list = [1, 2, 3]
print(any(some_list)) # True
another_list = []
print(any(another_list)) # False
# Since all are false, false is returned
print (any([False, False, False, False]))
# Here the method will short-circuit at the
# second item (True) and will return True.
print (any([False, True, False, False]))
# Here the method will short-circuit at the
# first (True) and will return True.
print (any([True, False, False, False]))
if true and true and true and true: none
if all ([true, true, true, true]): none
if true or true or true or true or true: none
if any ([true, true, true, true, true]): none