# Program to find the normal and trace of a matrix import math# Get size of matrixrow_size=int(input("Enter the row Size Of the Matrix:"))col_size=int(input("Enter the columns Size Of the Matrix:"))matrix=[]# Taking input of the matrixprint("Enter the Matrix Element:")for i in range(row_size):    matrix.append([int(j) for j in input().split()])# Calculate sum of the diagonals element# and Calculate sum of all the elementtrace=0sum=0for i in range(0, row_size):    for j in range(0, col_size):        if i==j:            trace += matrix[i][j]        sum+=matrix[i][j]normal=math.sqrt(sum)# Display the normal and trace of the matrixprint("Normal Of the Matrix is: ",normal)print("Trace Of the Matrix is: ",trace)