1
0
forked from tdwojak/Python2017
Signed-off-by: s45167 <krzysztof.spalinski@op.pl>
This commit is contained in:
s45167 2017-11-30 23:06:45 +01:00
parent d830a9105c
commit 494fd72518

View File

@ -14,7 +14,7 @@ def euclidean_distance(x, y):
return 0 return 0
else: else:
return ((x[0] - y[0]) ** 2 + (x[1] - y[1]) ** 2 + (x[2] - y[2]) ** 2) ** (1 / 2) return ((x[0] - y[0]) ** 2 + (x[1] - y[1]) ** 2 + (x[2] - y[2]) ** 2) ** (1 / 2)
pass
def tests(f): def tests(f):
inputs = [[(2.3, 4.3, -7.5), (2.3, 8.5, -7.5)]] inputs = [[(2.3, 4.3, -7.5), (2.3, 8.5, -7.5)]]