First solution in Clear category for Chunk by rodka81
def chunking_by(items, n): for i in range(0, len(items), n): yield items[i:i + n]
Feb. 19, 2020