human
Can you provide a code to find N Arithmetic Means between A and B and the other steps required given the following:
Find N Arithmetic Means between A and B | Prints N arithmetic means between A and B ..
Calculate common difference ( d ).
For finding N the arithmetic mean between A and B.
Driver code"
How can the above be solved in Python?
assistant
#Here is code to find N Arithmetic Means between A and B and the other steps required.
 def printAMeans ( A , B , N ) :
	d = ( B - A ) / ( N + 1 )
	for i in range ( 1 , N + 1 ) :
		print ( int ( A + i * d ) , end = " ▁ " )
A = 20 ; B = 32 ; N = 5
printAMeans ( A , B , N )