def calculate_distance(p1, p2):
    """Calculates the distance between two points

    Args:
        p1 (tuple): (x ,y) of first point
        p2 (tuple): (x, y) of second point
    
    >>> calculate_distance((1,1), (1,1))
    0.0
    >>> calculate_distance((52, 3), (26, 77))
    78.43468620451031
    """

    x1, y1 = p1
    x2, y2 = p2
    distance = ((x1 - x2)**2 + (y1 - y2)**2)**0.5
    return distance