Anonymous user
Matrix transposition: Difference between revisions
→{{header|Python}}: Colourized
(→{{header|Python}}: Colourized) |
|||
Line 391:
=={{header|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),
|