Divise en liste en morceaux égaux

def chunks(l, n):
    n = max(1, n)
    return (l[i:i+n] for i in range(0, len(l), n))
Tender Toucan