You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

5 lines
171 B

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)))