To write a python program to find the distance two 2 points
Import math function as m
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.
#Program to find the distance between two points.
#Developed by:Arshatha
#RegisterNumber:22009104
import math as m
l1=[4,2]
l2=[10,6]
d=m.sqrt((l2[0]-l1[0])**2+(l2[1]-l1[1])**2)
print("{:.2f}".format(d))
Thus the solutions for distance between two 2 points are successfully solved using python program