leandre.clochard
3 years ago
2 changed files with 14 additions and 10 deletions
@ -0,0 +1,5 @@ |
|||
def distance(tup_1, tup_2): |
|||
mn = (tup_1[0]-tup_2[0])**2+(tup_1[1]-tup_2[1])**2+(tup_1[2]-tup_2[2])**2 |
|||
return mn |
|||
|
|||
print(distance((338, 4.2, 6.3),(128, 14.8, 14.8))) |
Loading…
Reference in new issue