To write a python program to find the distance two 2 points
Give the user values of points
Arrange the values into their respective values
Substitute the values in the distance formula
The output of the distance formula id obtained
End thr program
import numpy as np
p1=[10,6]
p2=[4,2]
distance=np.sqrt(((p1[0]-p2[0])**2)+((p1[1]-p2[1])**2))
print("{:.2f}".format(distance))
Therefore finding distance between two points using python code is successful.