python turn list of list into list code example Example: python flatten list itertools.chain.from_iterable(factors)