matrix transpose

🏠
1 m = [[1, 2, 3],
2    [4, 5, 6],
3    [7, 8, 9]]
4 
5 [*zip(*m)]

Output:

1 [(1, 4, 7),
2 (2, 5, 8),
3 (3, 6, 9)]

See also:

matrix clockwise rotation

matrix anticlockwise rotation