Transpose matrix
Transposes a two-dimensional list.
- Use
*lstto get the provided list as tuples. - Use
zip()in combination withlist()to create the transpose of the given two-dimensional list.
Transposes a two-dimensional list.
*lst to get the provided list as tuples.zip() in combination with list() to create the transpose of the given two-dimensional list.