To write a python program to find the distance two 2 points
Import math function.
Assign the values of point 1 and point 2 whose distance is to be calculated.
Substitute the values in the distance formula
Print the coding to get the answer.
End the program.
Program to find the distance between two points.
Developed by: Harini V
RegisterNumber:22004214
import math
l1=[4,2]
l2=[10,6]
distance=math.sqrt(((l2[0]-l1[0])**2)+((l2[1]-l1[1])**2))
print("{:.2f}".format(distance))
Thus, the distance between two points is calculated.