human
Complete this python program:
def _list_readline(x):
assistant
#Here is the Python code you requested.

    """Given a list, returns a readline() function that returns the next element
    with each call.
    """
    x = iter(x)
    def readline():
        return next(x)
    return readline