get each value from a list of lists `a` using itertools,print(list(itertools.chain.from_iterable(a)))