Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- a1,b1 = input().split()
- c,d = input().split()
- x1 = float(a1)
- y1 = float(b1)
- x2 = float(c)
- y2 = float(d)
- distance = math.sqrt((x2-x1)**2 + (y2-y1)**2)
- print("%.4f"%distance)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement