from math import * def distance(A,B): (u,v) = vecteur(A,B) return hypot(u,v)