human
Number of common tangents between two circles if their centers and radius is given | Python3 program to find the number of common tangents between the two circles.
Driver code"
Solution in Python:
assistant
#Here is code to number of common tangents between two circles if their centers and radius is given and the other steps required.
 def circle ( x1 , y1 , x2 , y2 , r1 , r2 ) :
	distSq = ( x1 - x2 ) * ( x1 - x2 ) + ( y1 - y2 ) * ( y1 - y2 )
	radSumSq = ( r1 + r2 ) * ( r1 + r2 )
	if ( distSq == radSumSq ) :
		return 1
	elif ( distSq > radSumSq ) :
		return - 1
	else :
		return 0
x1 , y1 = - 10 , 8 ;
x2 , y2 = 14 , - 24 ;
r1 , r2 = 30 , 10 ;
t = circle ( x1 , y1 , x2 , y2 , r1 , r2 ) ;
if ( t == 1 ) :
	print ( " There ▁ are ▁ 3 ▁ common ▁ tangents ▁ between ▁ the ▁ circles . " )
elif ( t < 0 ) :
	print ( " There ▁ are ▁ 4 ▁ common ▁ tangents ▁ between ▁ the ▁ circles . " )
else :
	print ( " There ▁ are ▁ 2 ▁ common ▁ tangents ▁ between ▁ the ▁ circles . " )