def divide_chunks(list_to_chunk, chunk_size):
    # looping till length l
    for i in range(0, len(list_to_chunk), chunk_size):
        yield list_to_chunk[i:i + chunk_size]

def divide_chunks(list_to_chunk, chunk_size):
    # looping till length l
    for i in range(0, len(list_to_chunk), chunk_size):
        yield list_to_chunk[i:i + chunk_size]

# looping till length l