Log in
← All problems

Transpose a matrix

mediumLists20 XP

matrix is a list of rows, all the same length. Return its transpose: row i of the answer is column i of matrix.

Examples

Examples use JSON: true/false/null are True/False/None in Python.

Run examples checks the examples above. Submit also runs 2 hidden tests.