All problems
Face Landmark Distance
Problem
Compute the Euclidean distance between two 2D landmark points.
Return the distance rounded to 4 decimal places.
Test cases
case 1
in: [[0,0],[3,4]]
expected: 5
case 2
in: [[1,1],[1,1]]
expected: 0
case 3
in: [[2.5,3.5],[5.5,7.5]]
expected: 5
Starter codePython
def landmark_distance(p1, p2):
# Your code here
pass3 test cases · run your code against them in the editor