Next / Previous / Contents / TCC Help System / NM Tech homepage

20.2. all(): Are all the elements of an iterable true?

A predicate that tests whether all the elements of some iterable are considered True. If any elements are not already type bool, they are converted to Boolean values using the bool() built-in function.

>>> all([True, 14, (88,99)])
True
>>> all([True, 14, (88,99), None])
False