Anonymous user
Matrix transposition: Difference between revisions
→{{header|Python}}
(Added an ActionScript version.) |
|||
Line 747:
(4, 16, 64, 256),
(5, 25,125, 625))
print(zip(*m))
# in Python 3.x, you would do:
# print(list(zip(*m)))</lang>
Output:
[(1, 2, 3, 4, 5),
|