Transpose Table
A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.
- Domain
- Python
- Difficulty
- medium
- Seniority
- L4
Problem
Given a 2D matrix (list of rows, each row a list), return its transpose where element [i][j] becomes [j][i]. Assume all rows have the same length.
Summary
Rows become columns. Columns become rows.
Practice This Problem
Solve this Python problem with real code execution. DataDriven runs your Python code in a real environment and grades it automatically.