import math


def distance_l2(loc_1, loc_2):
    """
    :param loc_1: a tuple (x_1, y_1)
    :param loc_2: a tuple (x_2, y_2)
    :return: L2 distance between loc_1 and loc_2
    """
    x_difference = loc_1[0] - loc_2[0]
    y_difference = loc_1[1] - loc_2[1]
    return math.sqrt(x_difference*x_difference + y_difference*y_difference)