import itertools a=[[1, 2, 3], [4, 5, 6]] flat_list = list(itertools.chain.from_iterable(a)) print(flat_list) # Output: [1, 2, 3, 4, 5, 6]