import math


def euclidean(pt1, pt2):
    """
        This function calculates the euclidean distance between two points.

        Parameters
        ----------
        pt1 : tuple or list
            The coordinates of the first point. Eg. (41.58, -74.35)
        pt2 : tuple or list
            The coordinates of the second point. Eg. (41.58, -74.35)

        Returns
        -------
        dist : float
            The euclidean distance between pt1 and pt2.

    """
    x_diff = pt1[0] - pt2[0]
    y_diff = pt1[1] - pt2[1]
    dist = math.sqrt(pow(x_diff, 2) + pow(y_diff, 2))
    return dist