To write a python program to find the distance two 2 points
Using import math function,do the calculations.
Take the two coordinates as l1 and l2.
Substitute the values in the distance formula
using the print function, display the distance between the two points.
End the program.
#Program to find the distance between two points.
#Developed by: S.Vasanth
#RegisterNumber:212222110052
x1,x2=10,4
y1,y2=6,2
import math
d=math.sqrt(((x2-x1)**2)+((y2-y1)**2))
print("{:.2f}".format(d))
The output of the distance two 2 points as executed successfully.