Answers for "how to get the distance between two devices with python"

0

how to make a distance function in python

import math
p1 = [4, 0]
p2 = [6, 6]
distance = math.sqrt( ((p1[0]-p2[0])**2)+((p1[1]-p2[1])**2) )

print(distance)
Posted by: Guest on August-03-2020

Code answers related to "how to get the distance between two devices with python"

Python Answers by Framework

Browse Popular Code Answers by Language