Write transpose(matrix) that swaps rows and columns of a rectangular list of lists: [[1,2,3],[4,5,6]] → [[1,4],[2,5],[3,6]].
transpose([[1, 2, 3], [4, 5, 6]]) → [[1, 4], [2, 5], [3, 6]]
transpose([]) → []
Submit runs 4 tests, including hidden edge cases.
Run your code to see the output here.