News

N = 4 def transpose(A, B): for i in range(N): for j in range(N): B[i][j] = A[j][i] if name == 'main': A = [[1, 1, 1, 1], [2, 2, 2, 2], [3, 3, 3, 3], [4, 4, 4, 4]] B ...
# question=Write a program that takes a Matrix as input and prints the transpose of the matrix. # Input=A matrix. # Output= Print the transpose of the matrix.