import math


def distance_between_points(x, y):
    """
    distance between two points with the coordinates (x1, y1) and (x2, y2).
    D=√(x2−x1)2+(y2−y1)2
    """
    all_distances = []
    zipped = zip(x,y)
    for z in zipped:
        z1, z2 = z
        all_distances.append((z1-z2)**2)
    return math.sqrt(sum(all_distances))