What does `itertools.chain(*iterables)` do?

Python Professional Hard

Python Professional — Hard

What does `itertools.chain(*iterables)` do?

Key points

  • The function does not merge iterables into a list of tuples.
  • It does not zip iterables together.
  • It does not create a Cartesian product.

Ready to go further?

Related questions