#coding:utf-8

def distance(pa, pb):
    import math
    lst = [(x-y)**2 for x, y in zip(pa, pb)]
    #lst = map(lambda x, y: (x-y)**2, pa, pb)
    d = math.sqrt(sum(lst))
    return d

pa = (1, 2)
pb = (3, 4)
print('d=', distance(pa, pb))
4fcfa938c8da16124ac0d83f73c476c43f39efdc
<mask token>

def distance(pa, pb):
    import math
    lst = [((x - y) ** 2) for x, y in zip(pa, pb)]
    d = math.sqrt(sum(lst))
    return d


<mask token>

def distance(pa, pb):
    import math
    lst = [((x - y) ** 2) for x, y in zip(pa, pb)]
    d = math.sqrt(sum(lst))
    return d


<mask token>
print('d=', distance(pa, pb))

def distance(pa, pb):
    import math
    lst = [((x - y) ** 2) for x, y in zip(pa, pb)]
    d = math.sqrt(sum(lst))
    return d


pa = 1, 2
pb = 3, 4
print('d=', distance(pa, pb))

#coding:utf-8

def distance(pa, pb):
    import math
    lst = [(x-y)**2 for x, y in zip(pa, pb)]
    #lst = map(lambda x, y: (x-y)**2, pa, pb)
    d = math.sqrt(sum(lst))
    return d

pa = (1, 2)
pb = (3, 4)
print('d=', distance(pa, pb))