def flatten(l):
<EOL>return [item for sublist in l for item in sublist]<EOL>
Flattens a list of lists.

    Parameters
    ----------
    l: list
        The list of lists.

    Returns
    -------
    list
        The flattened list.