Abstand zwischen Punkt Python
import math
def distance(point1, point2):
return round(math.sqrt((point1[0] - point2[0])**2 + (point1[1] - point2[1])**2), 2)
Purple Team
import math
def distance(point1, point2):
return round(math.sqrt((point1[0] - point2[0])**2 + (point1[1] - point2[1])**2), 2)