+ 2
Distance between two points
2 odpowiedzi
+ 6
Ambica Yarramsetti ,
as already mentioned, you can use the formula in the above post.
but python also has the dist() function in the math library to perform requested task:
from math import dist
print(dist((17,5),(22,11)))
+ 1
Sqrt((Xa - Xb)^2 + (Ya - Yb)^2)
Pythagoras theorem