forked from tdwojak/Python2017
commited tasks
This commit is contained in:
parent
49ade33e4b
commit
977a92617e
@ -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)]]
|
||||
|
Loading…
Reference in New Issue
Block a user