Next / Previous / Contents / Shipman's 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)])
>>> all([True, 14, (88,99), None])