6.7.6. grouperΒΆ

grouper(iterable, n)[source]ΒΆ

Collect data into fixed-length chunks or blocks.

Parameters:
  • iterable – Iterable object.
  • iterable – iter
  • n (int) – Length chunks or blocks.