0

for example lets say I have the following 2d list:

rows = [[1, 7], [3, 9], [5, 11]]

and I want a new list like this:

columns = [[1, 3, 5], [7, 9, 11]]

Basically, if this was a matrix, I want the 'columns'. What's the most pythonic way of doing this? Thank you.

Moony
  • 37
  • 4

0 Answers0