join list of lists in python [duplicate]

import itertools
a = [['a','b'], ['c']]
print(list(itertools.chain.from_iterable(a)))

Leave a Comment