class Point:
    x = 0
y = 0

def __init__(self, x=0, y=0):
    self.x = x
self.y = y
x, y = Point.x, Point.y
p1 = Point(3, 4)
distance = ((p1.x - x) ** 2 + (p1.y - y) ** 2) ** 0.5
print(distance)
How can I save an instance of a class in it's own class as a class variable in Python?