1
0
forked from tdwojak/Python2017

commited tasks

This commit is contained in:
s45150 2017-11-25 16:31:53 +01:00
parent 49ade33e4b
commit 977a92617e

View File

@ -10,7 +10,10 @@ np. odległość pomiędzy punktami (0, 0, 0) i (3, 4, 0) jest równa 5.
"""
def euclidean_distance(x, y):
pass
dist = 0
for a,b in x,y:
dist = (sum(a-b)**2)**0.5
return dist
def tests(f):
inputs = [[(2.3, 4.3, -7.5), (2.3, 8.5, -7.5)]]