human
Find the product of sum of two diagonals of a square Matrix | Function to find the product of the sum of diagonals ..
Initialize sums of diagonals.
Return the answer.
Driven code.
Function call"
Solution in Python:

Give me a code to find the product of sum of two diagonals of a square Matrix and the other steps required?
assistant
#Here is code to find the product of sum of two diagonals of a square Matrix and the other steps required.
 def product ( mat , n ) :
	d1 = 0
	d2 = 0
	for i in range ( n ) :
		d1 += mat [ i ] [ i ]
		d2 += mat [ i ] [ n - i - 1 ]
	return d1 * d2
if __name__ == ' _ _ main _ _ ' :
	mat = [ [ 5 , 8 , 1 ] , [ 5 , 10 , 3 ] , [ - 6 , 17 , - 9 ] ]
	n = len ( mat )
	print ( product ( mat , n ) )