def chunks(l, n):
    """Yield successive n-sized chunks from l.

    Parameters
    ----------
    l : list
        The list to split in_ chunks
    n : int
        The target numbers of items in_ each chunk

    Returns
    -------
    list
        List of chunks

    """
    pieces = []
    for i in range(0, len(l), n):
        pieces.append(l[i:i + n])
    return pieces