Functions on Iterables
Learn about the different functions on iterables available in Python.
We'll cover the following...
Introduction to functions on iterables
Here are some functions that take iterable objects (lists, sets, tuples, strings, dictionaries, ranges, files, and possibly others).
-
all(iterable)
returnsTrue
if every element ofiterable
evaluates to a true value. -
any(iterable)
returnsTrue
if at least one element ofiterable
...