<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def iter_steps(g, steps):
 """ iterate over 'g' in blocks with a length of the given 'step' count. [1, 2] [3, 4] [5] [1, 2, 3] [4, 5, 6] [7, 8, 9] 12345678 12345678 12345678 [0, 1, 0, 1, 0, 1, 0, 1] [0, 1, 0, 1, 0, 1, 0, 1] [1, 1, 1, 0, 0, 0] """

    values = []
    for value in g:
        values.append(value)
        if len(values) == steps:
            yield list(values)
            values = []
    if values:
        yield list(values)