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

13.2. all(): Are all the elements of a sequence true?

A predicate that tests whether all the elements of some sequence 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