The all()
function checks whether all elements in a given iterable have a boolean value of True.
The function takes one argument, an iterable object such as a list, set, tuple etc.
all(iterable)
iterable |
An iterable object containing the elements to be checked |
The function returns a boolean value. True
if all the values in the iterable have a boolean value of T
rue
or the iterable is empty, False
otherwise.