def distance(p1, p2):
    return sum((a - b) ** 2 for a, b in zip(p1, p2)) ** 0.5
Computes and returns the distance between two points, `p1` and `p2`.
dataset/ETHPy150Open fogleman/pg/pg/util.py/distance