Answers for "concatenate 2 list into 1 python"

5

combining list of list to single list python

import itertools
a = [['a','b'], ['c']]
print(list(itertools.chain.from_iterable(a)))
Posted by: Guest on April-20-2021
0

Concatenate lists

>>> a = [1, 2, 3]
>>> b = [4, 5, 6]
>>> c = a + b
>>> print(c)
[1, 2, 3, 4, 5, 6]
Posted by: Guest on October-21-2021

Code answers related to "concatenate 2 list into 1 python"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language