finding euclidean distance,better code?

harryos oswald.harry at
Fri Mar 28 16:15:48 CET 2008

> The code is pretty legible as it is now. Anyway, using min() and a
> generator:

is this calculated distance really Euclidean distance? When i checked
it shows a calculation involving sum of squares of the differences of
elements.Here in this code ,the sum of coordinates are used? is that a
different measure?


More information about the Python-list mailing list