Calculate Determinant of 2*2 matrix using diagonal functions

Using diagonal and antidiagonal calculated determinant

d=np.diagonal(matrix_a)  
ad=np.fliplr(matrix_a).diagonal() 
determinant = d.prod() - ad.prod()

HI @eashwary:

Please attach a mission link if any. Thanks!