interchanging rows and columns

Johannes Zellner johannes at zellner.org
Sat Oct 14 05:45:25 EDT 2000


how can I turn
   [[1, 2, 3], [4, 5, 6]]
into
   [[1, 4], [2, 5], [3, 6]]

?
must be easy, but I couldn't manage it.
I tried some (map|apply) variants of the tutorial. No luck.

-- 
   Johannes



More information about the Python-list mailing list