Answers for "join 2d list to 1d"

1

convert 2d list to 1d python

import itertools

a = [[1, 2], [3, 4], [5, 6]]
list(itertools.chain.from_iterable(a))

Output:- [1, 2, 3, 4, 5, 6]
Posted by: Guest on August-27-2021
-1

how to add one 2d list to another 2d list python

how to add one 2d list to another 2d list python
Posted by: Guest on March-24-2021

Code answers related to "TypeScript"

Browse Popular Code Answers by Language