To write a python program to find the distance two 2 points
Import math
Assign the values of two points
Substitute the values in the distance formula
Print the values
End the program
#program to find the distance between two points.
#Developed by : Mathiyazhagan A
#Registernumber: 22005215
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 are successfully found.