I have this code block:
def euc_dist(x,y): return ((x[0] - y[0])**2 +(x[1] - y[1])**2 )**(1/2) def dist(s1,s2): distances = [euc_dist(s1[i],s2[i]