Advertisement
VergeoPaw

1015

Sep 17th, 2021
836
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. import math
  2. a1,b1 = input().split()
  3. c,d = input().split()
  4. x1 = float(a1)
  5. y1 = float(b1)
  6. x2 = float(c)
  7. y2 = float(d)
  8. distance = math.sqrt((x2-x1)**2 + (y2-y1)**2)
  9. print("%.4f"%distance)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement