title: Given a square matrix, calculate the absolute difference between the sums of its diagonals
body: <pre><code>import numpy as np n=int(input())
  
  R = n C = n p,s=0,0
  
  print("Enter the entries in a single line (separated by space): ")
  
  entries = list(map(int, input().split())) matrix = np.array(entries).reshape(R, C) print(matrix) for i in range(R): for j in range(C): if i==j: p=p+matrix[i][j] if i+j==n-1: s=s+matrix[i][j] s1=p-s print(s1)
  </code></pre>