Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- array = [(2, 4), (-4, 2),(10, -5)]
- def Distance(x1, y1, x2, y2):
- dist= math.sqrt((x2-x1)**2 +(y2-y1)**2)
- return dist
- Distance(array)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement