human
Count cubes of size K inscribed in a cube of size N | Function to find the number of the cubes of the size K.
Stores the number of cubes.
Stores the number of cubes of size k.
Size of the bigger cube.
Size of the smaller cube"
How can the above be solved in Python?

Write me a code to count cubes of size K inscribed in a cube of size N and the other steps required?
assistant
#Here is code to count cubes of size K inscribed in a cube of size N and the other steps required.
 def No_of_cubes ( N , K ) :
	No = 0
	No = ( N - K + 1 )
	No = pow ( No , 3 )
	return No
N = 5
K = 2
print ( No_of_cubes ( N , K ) )