def flatten(list_of_lists):
    """
    Returns a list consisting of the elements in the list of lists.
    e.g. [[1,2,3],[3,4],[5,6]] -> [1,2,3,3,4,5,6]
    """
    return [result for sublist in list_of_lists for result in sublist]