import itertools my_list = [[1], [2, 3], [4, 5, 6, 7]] flat_list = list(itertools.chain(*my_list)) print(flat_list)