View Problem

Find the distance between two points

DiskEdit
python
# problem description doesn't say 2D points ;)
from math import sqrt
print sqrt(sum((x-y)**2 for x,y in zip(a, b)))
DiskEdit
python
from math import hypot
print hypot(x2-x1, y2-y1)

Submit a new solution for python
There are 24 other solutions in additional languages (clojure, cpp, csharp, erlang ...)