combining list of list to single list python

116

combining list of list to single list python -

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

merge lists in list python -

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

Comments

Submit
0 Comments