To write a python program to find the distance two 2 points
start the program
take the given points as variables
Substitute the values in the distance formula
distance calculation
In this step,the program prints the calculated distance with 2 decimal places.
#Program to find the distance between two points.
#Developed by: OVIYA P
#RegisterNumber:23013207
import math
x1=10
y1=6
x2=4
y2=2
d=math.sqrt(((x2-x1)**2+(y2-y1)**2))
print("{:.2f}".format(d))
Thus the python program for caluculating the distance between two points executed succesfully