how to break a list unequal size chunks in python

26

[lst[i:i + n] for i in range(0, len(lst), n)]

Comments

Submit
0 Comments