...

/

Functions on Iterables

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) returns True if every element of iterable evaluates to a true value.

  • any(iterable) returns True if at least one element of iterable ...