Python All
All function
The all(iterable) function return True if all elements of the iterable are true or if the iterable is empty.
Examples
Example 1
>>> x = [1, 2, 3] >>> x.__iter__ <method-wrapper '__iter__' of list object at 0x02D549E0> >>> all(x) True >>>
Example 2
>>> x = [1, 2, 3] >>> x.__iter__ <method-wrapper '__iter__' of list object at 0x02D548C8> >>> a = all(x) >>> a True >>>