Write a python function to flatten one level of nesting


Topic: Write a python function to flatten one level of nesting

Solution

def flatten(list_of_lists):
    from itertools import chain
    return chain.from_iterable(list_of_lists)



List all Python Programs