Python Notes
any(): It returns True if one of the iteratable is True and return False if iteratable is empty or all the items are False. Similar to logical operator OR
all(): It returns False one of the iteratable is False or the iteratable is empty. Similar to the chained logical operator AND
List=[1>2, 2>3, 3<4]
print("any :",any(List))
print("all :",all(List))
Output:
any : True
all : False