1# I hope to be of help and to have understood the request
2from math import sqrt # import square root from the math module
3# the x and y coordinates are the points on the Cartesian plane
4pointA = (x, y) # first point
5pointB = (x, y) # second point
6distance = calc_distance(pointA, pointB) # here your beautiful result
7def calc_distance(p1, p2): # simple function, I hope you are more comfortable
8 return sqrt((p1[0]-p2[0])**2+(p1[1]-p2[1])**2) # Pythagorean theorem
1import math
2# Example points in 3-dimensional space...
3x = (5, 6, 7)
4y = (8, 9, 9)
5distance = math.sqrt(sum([(a - b) ** 2 for a, b in zip(x, y)]))
6print("Euclidean distance from x to y: ",distance)