homework_04/12_Martin_Vrachev/circles.py
def distance(point_a, point_b):
    '''
    Function which calculates distance between two points
    '''

    try:
        assert isinstance(point_a, Point)
        assert isinstance(point_b, Point)
    except AssertionError:
        print('The function takes points as parameters!')
        sys.exit()

    return math.sqrt(pow(point_b.x_coordinate - point_a.x_coordinate, 2) + \
     pow(point_b.y_coordinate - point_a.y_coordinate, 2))

    Function which calculates distance between two points
    
Function which calculates distance between two points
Function which calculates distance between two points
def distance(point_a, point_b):
    try:
        assert isinstance(point_a, Point)
        assert isinstance(point_b, Point)
    except AssertionError:
        print('The function takes points as parameters!')
        sys.exit()
    return math.sqrt(pow(point_b.x_coordinate - point_a.x_coordinate, 2) + \
     pow(point_b.y_coordinate - point_a.y_coordinate, 2))
def distance ( point_a , point_b ) : try : assert isinstance ( point_a , Point ) assert isinstance ( point_b , Point ) except AssertionError : print ( 'The function takes points as parameters!' ) sys . exit ( ) return math . sqrt ( pow ( point_b . x_coordinate - point_a . x_coordinate , 2 ) + pow ( point_b . y_coordinate - point_a . y_coordinate , 2 ) )
Function which calculates distance between two points
Function which calculates distance between two points
'''
    Function which calculates distance between two points
    '''
point_a
point_b