from math import * def distance(A,B): (xA,yA) = A (xB,yB) = B return hypot(xB-xA,yB-yA) print(distance( (2,3) , (5,7) ))