Chunk Function in Python
Chunks a list into smaller lists of a specified size. Use range to create a list of desired size. Then use map on this list and fill it with splices of lst. from math import ceil def chunk(lst, size): return list( map(lambda x: lst[x * ...
Jun 29, 20231 min read16


