human
Give me a code to find the side of the squares which are lined in a row , and distance between the centers of first and last square is given and the other steps required given the following:
Find the side of the squares which are lined in a row , and distance between the centers of first and last square is given | Python program to find side of the squares which are lined in a row and distance between the centers of first and last squares is given.
Driver code"
Solution in Python:
assistant
#Here is code to find the side of the squares which are lined in a row , and distance between the centers of first and last square is given and the other steps required.
 def radius ( n , d ) :
	print ( " The ▁ side ▁ of ▁ each ▁ square ▁ is ▁ " , d / ( n - 1 ) ) ;
d = 42 ; n = 4 ;
radius ( n , d ) ;