homework_04/04_Victor_Dimitrov/circles.py
def euclidean_distance(self, other):
        '''
        It's handy to have an euclidean distance function instead of writing
        it every time you need the euclidean distance between two points.
        Source: https://www.cuemath.com/euclidean-distance-formula/
        '''

        assert isinstance(other, Point)

        diff_x = self.coord_x - other.coord_x
        diff_y = self.coord_y - other.coord_y

        return sqrt(diff_x ** 2 + diff_y ** 2)

        It's handy to have an euclidean distance function instead of writing
        it every time you need the euclidean distance between two points.
        Source: https://www.cuemath.com/euclidean-distance-formula/
        
It's handy to have an euclidean distance function instead of writing
it every time you need the euclidean distance between two points.
It ' s handy to have an euclidean distance function instead of writing it every time you need the euclidean distance between two points .
def euclidean_distance(self, other):
        assert isinstance(other, Point)
        diff_x = self.coord_x - other.coord_x
        diff_y = self.coord_y - other.coord_y
        return sqrt(diff_x ** 2 + diff_y ** 2)
def euclidean_distance ( self , other ) : assert isinstance ( other , Point ) diff_x = self . coord_x - other . coord_x diff_y = self . coord_y - other . coord_y return sqrt ( diff_x ** 2 + diff_y ** 2 )
It's handy to have an euclidean distance function instead of writing
it every time you need the euclidean distance between two points.
It ' s handy to have an euclidean distance function instead of writing it every time you need the euclidean distance between two points .
'''
        It's handy to have an euclidean distance function instead of writing
        it every time you need the euclidean distance between two points.
        Source: https://www.cuemath.com/euclidean-distance-formula/
        '''
self
other