To write a python program to find the distance two 2 points
Importing math module in program
Assigning 2 list for matrix calculation
Substitute the values in the distance formula
Print the statements.
End the program
#Program to find the distance between two points.
#Developed by:JAYASURIYA J
#RegisterNumber:212223230088
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))
This program is displayed successfully.