Answers for "calculating distance with method class in 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 "calculating distance with method class in pythonü"

Python Answers by Framework

Browse Popular Code Answers by Language