To write a python program to find the distance two 2 points
Substitute the values in the distance formula
import math
x1=4
x2=10
y1=2
y2=6
distance=math.sqrt((x2-x1)**2+(y2-y1)**2)
print(round(distance,2))
Thus process is done by distance between two points