1
0
Fork 0

task05 passed

This commit is contained in:
Ewelina 2017-11-26 23:42:10 +01:00
parent 841880258b
commit d790e85a09
1 changed files with 3 additions and 1 deletions

View File

@ -8,9 +8,11 @@ dwoma punktami przestrzeni trójwymiarowej. Punkty są dane jako
trzyelementowe listy liczb zmiennoprzecinkowych.
np. odległość pomiędzy punktami (0, 0, 0) i (3, 4, 0) jest równa 5.
"""
import math
def euclidean_distance(x, y):
pass
return(math.sqrt((x[0] - y[0])**2) + math.sqrt((x[1]-y[1])**2))
def tests(f):
inputs = [[(2.3, 4.3, -7.5), (2.3, 8.5, -7.5)]]