import math


def calculate_distance1(data1, data2):
    """
    :param data1: a vector
    :param data2: a vector

    :return:
     euclidean distance between data1 and data2
    """

    # zip data1 and data2
    zipped = zip(data1, data2)

    # calculate distance between data1 and data2
    distance = math.sqrt(sum([pow(a - b, 2) for (a, b) in zipped]))

    return distance