Python program to Check for Existence of a Circle

import math x = float(input("Insert point x: ")) y = float(input("Insert point y: ")) r = float(input("Insert the radius: ")) hypotenuse = math.sqrt(pow(x,2) + pow(y,2)) if hypotenuse <= r: print("The point belongs to circle.") else: print("The point does not belong to circle.")

 

 

Output:

Insert point x: 5
Insert point y: 5
Insert the radius: 5
The point does not belong to circle.

 

Insert point x: 3
Insert point y: 3
Insert the radius: 6
The point belongs to circle.