import math


def dist(p1, p2):
    """
    Calculates the euclidean distance between two cartesian points given as tuples

    :param p1: Point 1 as a tuple
    :param p2: Point 2 as a tuple
    :return: Distance between points 1 and 2
    """
    return math.sqrt((p1[0] - p2[0])**2 + (p1[1] - p2[1])**2)