Cómo calcular la distancia sin numpy
from math import sqrt
def euclidean_distance(x, y):
return sqrt(sum((px - py)**2 for px, py in zip(x,y)))
euclidean_distance(x,y)
Clever Crocodile