def chunks(seq, n):
    """Splits a list into n approximately-equal-size chunks.

    Args:
        seq (array-like): Input list to split.
        n (int):          Number of chunks to return.
    """
    return [seq[i::n] for i in range(n)]