Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Transpose solution in Clear category for Transposed Matrix by spoty
def checkio(matrix):
""" This Function Transpose matrix
"""
# 1 For N x N cases
# print [[matrix[x][y] for x ,row in enumerate(matrix[0])]
# for y, col in enumerate(matrix)]
# 2 Valid for N x N and N x M
return [list(i) for i in zip(*matrix)]
#These "asserts" using only for self-checking and not necessary for auto-testing
May 16, 2014