human
Sum of both diagonals of a spiral odd | function returns sum of diagonals.
as order should be only odd we should pass only odd integers.
Driver program"
How can the above be solved in Python?

Give me a code to sum of both diagonals of a spiral odd and the other steps required?
assistant
#Here is code to sum of both diagonals of a spiral odd and the other steps required.
 def spiralDiaSum ( n ) :
	if n == 1 :
		return 1
	return ( 4 * n * n - 6 * n + 6 + spiralDiaSum ( n - 2 ) )
n = 7 ;
print ( spiralDiaSum ( n ) )