JavaScript seems to be disabled in your browser. You must have JavaScript enabled in your browser to utilize the functionality of this website.
import itertools a = [['a', 'b'], ['c']] print(list(itertools.chain.from_iterable(a)))
['a', 'b', 'c']