Python Any
Any function
The any(iterable) function return True if any element of the iterable is true.
Examples
Example 1
>>> a = [5, 6, 7] >>> a.__iter__ <method-wrapper '__iter__' of list object at 0x02EF7148> >>> any(a) True >>>
Example 2
>>> a = [5, 6, 7] >>> a.__iter__ <method-wrapper '__iter__' of list object at 0x02EF7148> >>> b = any(a) >>> b True >>>