def divide_chunks(a_list, n):
    """Divide a list into chunks of size n.

    :param a_list: an entry list.
    :param n: size of each chunk.
    :return: chunks in a list object.
    """
    return [a_list[i:i + n] for i in range(0, len(a_list), n)]