def dist(p,q):
    """ Calculates the distance between the points p and q.

    Parameters
    ---------
    p : Point
        the first point
    
    q : Point
        the second point

    Returns
    ----------
    Float
        The distance between the points p and q.
    """
    return (sum((p.array()-q.array())**2))**0.5