You are here : python_3Built-in Functionsall

all() - Built-in Functions

Return True if all elements of the iterable are true (or if the iterable
is empty).  Equivalent to:


Syntax

all(iterable)


Example

def all(iterable):
    for element in iterable:
        if not element:
            return False
    return True


Output / Return Value


Limitations


Alternatives / See Also


Reference