def distance(coord_a, coord_b):
    """
    Calcuate the distance between 2 coordinates.

    Arguments:
        coord_a (array): coordinate of point a
        coord_b (array): coordinate of point b

    Return:
        dist (float)
    """
    assert len(coord_a) == len(coord_b)
    dim = len(coord_a)
    sum_square_dist = 0

    for a, b in zip(coord_a, coord_b):
        sum_square_dist += (a - b)**2

    dist = sum_square_dist**(1 / dim)

    return dist