To write a python program to find the distance two 2 points
Get the coordinate input from the user for the first point
Get the coordinate input from user for the second point
Substitute the values in the distance formula
Define the function
Call the function
#Program to find the distance between two points.
#Developed by: RIYA P L
#RegisterNumber:23005672
import math
def distance(x1,y1,x2,y2):
d=(((x1-x2)**2)+((y1-y2)**2))
e=math.sqrt(d)
return round(e,2)
x1=10
y1=6
x2=4
y2=2
print(distance(x1,y1,x2,y2))
thus,the program runs successfully.