To write a python program to find the distance two 2 points
Using import math function,do the calculations.
Take the two coordinates as l1 and l2.
formula Substitute the values in the distance formula
using the print function, display the distance between the two points.
End the program.
import math
x_2=4
x_1=10
y_1=6
y_2=2
d=(x_2-x_1)**2+(y_2-y_1)**2
e=math.sqrt(d)
print(f'{e:.2f}')
Thus the distance of the two points is sucessfully executed and displayed .