To write a python program to find the distance two 2 points
To write a python program to find the distance two 2 points
Mention the coordinates as given
Substitute the values in the distance formula
Assign the values of coordinates in the formula
End the program
#Program to find the distance between two points.
#Developed by: Delli Priya
#RegisterNumber: 22006375
import math
p1 = [10,6]
p2 = [4,2]
distance = math.sqrt(((p1[0]-p2[0])**2)+((p1[1]-p2[1])**2))
print("{:.2f}".format(distance))
Thus findings of distance between two points are successfully executed