import math


def euclidean_distance(data1, data2):
	"""
	Calculates the euclidean distance between two data objects representing
	coordinates.
	The data objects must be same-sized sequences of numbers (or act like it).
	See http://en.wikipedia.org/wiki/Euclidean_distance 
	"""
	distance = 0
	for v1, v2 in zip(data1, data2):
		diff = v1 - v2
		distance += diff * diff
	distance = math.sqrt(distance)
	return distance