You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# comprehension_result = [[X[i][j]+Y[i][j] for j in range(len(X[0]))] for i in range(len(X))]
# for i in comprehension_result:
# print(i)
# print(comprehension_result)
# transpose of a matrix
traspose_result= [[0,0,0],[0,0,0],[0,0,0]]
foriinrange(len(result)):
forjinrange(len(X[0])):
traspose_result [i][j] =result[j][i] # here element in ith column will be placed in jth column and element in jth element will be placed in ith column.