human
Sum of the count of number of adjacent squares in an M X N grid | function to calculate the sum of all cells adjacent value.
Driver Code"
How can the above be solved in Python?
 Write me a code to sum of the count of number of adjacent squares in an M X N grid and the other steps required?
assistant
#Here is code to sum of the count of number of adjacent squares in an M X N grid and the other steps required.
 def summ ( m , n ) :
	return 8 * m * n - 6 * m - 6 * n + 4
m = 3
n = 2
print ( summ ( m , n ) )