Matrix transposition: Difference between revisions

Content added Content deleted
(→‎{{header|Java}}: +Mathematica)
No edit summary
Line 352:
=={{header|Python}}==
#!/usr/bin/env python
from pprint import pprint
m=((1, 1, 1, 1),
(2, 4, 8, 16),
Line 358 ⟶ 357:
(4, 16, 64, 256),
(5, 25,125, 625));
pprintprint(zip(*m))
Output:
[(1, 2, 3, 4, 5),