<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def list_to_rows(src, size):
 """A generator that takes a enumerable item and returns a series of slices. Useful for turning a list into a series of rows. [[1, 2, 3], [4, 5, 6], [7, ]] """


    row = []
    for item in src:
        row.append(item)
        if len(row) == size:
            yield row
            row = []

    if row:
        yield row