human
Can you provide a the Python program you requested given the following:
Complete the below
def iter_blocks(course):

    ''''Returns an iterator over all of the blocks in a course.'
    '''
assistant
#Here is the Python program you requested.
    def visit(block):
        '    get    child    blocks    '
        (yield block)
        for child in block.get_children():
            for descendant in visit(child):
                (yield descendant)
    return visit(course)