(self, other)
return (dx * dx + dy * dy) ** 0.5
Returns the distance of the point from another one.

        Example:

            >>> p1 = Point(5, 7)
            >>> p2 = Point(8, 3)
            >>> p1.distance(p2)
            5.0
Returns the distance of the point from another one.
Returns the distance of the point from another one .
def distance(self, other):
        """Returns the distance of the point from another one.

        Example:

            >>> p1 = Point(5, 7)
            >>> p2 = Point(8, 3)
            >>> p1.distance(p2)
            5.0
        """
        dx, dy = self.x - other.x, self.y - other.y
        return (dx * dx + dy * dy) ** 0.5
def distance ( self , other ) : dx , dy = self . x - other . x , self . y - other . y return ( dx * dx + dy * dy ) ** 0.5