forked from tdwojak/Python2017
Done
Signed-off-by: s45167 <krzysztof.spalinski@op.pl>
This commit is contained in:
parent
d830a9105c
commit
494fd72518
@ -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)]]
|
||||||
|
Loading…
Reference in New Issue
Block a user