homework_04/19_teodor_dishanski/task.py
def distance(self, other_point) -> float:
        """Return distance between the current point and another one.

        Arguments: other_point - An instance of the class Point

        The distance between two points is calculated using
        the Pytoagorean theorem (a^2 + b^2 = c^2).
        """
        assert isinstance(other_point, Point)
        result_x = self.x_coordinate - other_point.x_coordinate
        result_y = self.y_coordinate - other_point.y_coordinate
        return (result_x ** 2 + result_y ** 2) ** 0.5
Return distance between the current point and another one.

        Arguments: other_point - An instance of the class Point

        The distance between two points is calculated using
        the Pytoagorean theorem (a^2 + b^2 = c^2).
        
Return distance between the current point and another one.
Arguments: other_point - An instance of the class Point

The distance between two points is calculated using
the Pytoagorean theorem (a^2 + b^2 = c^2).
Return distance between the current point and another one . Arguments : other_point - An instance of the class Point The distance between two points is calculated using the Pytoagorean theorem ( a^2 + b^2 = c^2 ) .
def distance(self, other_point) -> float:
        assert isinstance(other_point, Point)
        result_x = self.x_coordinate - other_point.x_coordinate
        result_y = self.y_coordinate - other_point.y_coordinate
        return (result_x ** 2 + result_y ** 2) ** 0.5
def distance ( self , other_point ) -> float : assert isinstance ( other_point , Point ) result_x = self . x_coordinate - other_point . x_coordinate result_y = self . y_coordinate - other_point . y_coordinate return ( result_x ** 2 + result_y ** 2 ) ** 0.5
Return distance between the current point and another one.
Return distance between the current point and another one .
"""Return distance between the current point and another one.

        Arguments: other_point - An instance of the class Point

        The distance between two points is calculated using
        the Pytoagorean theorem (a^2 + b^2 = c^2).
        """
self
other_point