Categories
How to merge "columns" of a two-dimensional array?
There is an array: how to make it: ? The size of rows and columns can change dynamically (it is not known in advance, but the number of columns in each row is the same).
Answer the question
In order to leave comments, you need to log in
list(map(list, zip(*arr)))
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question