To write a python program to find the distance two 2 points
Assign the coordinate values to variables
Substitute the values in the distance formula
Round off the number to two decimal places
End the program
#Program to find the distance between two points.
#Developed by: dharsan R
#RegisterNumber:23012300
import math
x1,y1=4,2
x2,y2=10,6
result=math.sqrt((x2-x1)**2+(y2-y1)**2)
print("{:.2f}".format(result))
The distance between the two points have been calculated and displayed successfully