python append or extend ravel lists of lists code example Example: python flatten list itertools.chain.from_iterable(factors)