Matrix transposition: Difference between revisions

Line 391:
 
=={{header|Python}}==
<python> #!/usr/bin/env python
m=((1, 1, 1, 1),
(2, 4, 8, 16),
Line 397:
(4, 16, 64, 256),
(5, 25,125, 625));
print(zip(*m))</python>
Output:
[(1, 2, 3, 4, 5),
Anonymous user