To write a python program to find the distance two 2 points
Import math library using import statement
Define the two points into two separate lists
Substitute the values in the distance formula
Print the final value rounded upto two decimals using format function. It would display the distance value
End the program
#Program to find the distance between two points.
#Developed by: GAUTHAM M G
#RegisterNumber: 21000182
import math
l1=[10,6]
l2=[4,2]
dist=math.sqrt(((l1[0]-l2[0])**2)+((l1[1]-l2[1])**2))
print("{:.2f}".format(dist))
Thus the python program to find the distance two points is successfully executed.