make a list into a list of lists code example Example: convert list of list to list python merged = list(itertools.chain.from_iterable(list2d))