human
Find if a point lies inside a Circle | Python3 program to check if a point lies inside a circle or not.
Compare radius of circle with distance of its center from given point.
Driver Code"
Solution in Python:
assistant
#Here is code to find if a point lies inside a Circle and the other steps required.
 def isInside ( circle_x , circle_y , rad , x , y ) :
	if ( ( x - circle_x ) * ( x - circle_x ) + ( y - circle_y ) * ( y - circle_y ) <= rad * rad ) :
		return True ;
	else :
		return False ;
x = 1 ;
y = 1 ;
circle_x = 0 ;
circle_y = 1 ;
rad = 2 ;
if ( isInside ( circle_x , circle_y , rad , x , y ) ) :
	print ( " Inside " ) ;
else :
	print ( " Outside " ) ;