To write a python program to find the distance two 2 points
Clone the repository from github
Assign the function command in the program
Substitute the values in the distance formula
print the round(d,2)
End the program
#Program to find the distance between two points.
#Developed by: Mohamed Aakif Asrar S
#RegisterNumber:23003613
import math
def distance(x1,y1,x2,y2):
dx=x2-x1
dy=y2-y1
d=math.sqrt(dx**2+dy**2)
return d
x1=4
y1=2
x2=10
y2=6
d=distance(x1,y1,x2,y2)
print(round(d,2))
Thus the distance between two points is completed successfully