Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- x1, x2 = input().split()
- y1, y2 = input().split()
- X = (float(x2)-float(x1)) ** 2
- Y = (float(y2)-float(y1)) ** 2
- dis = X + Y
- distance = math.sqrt(dis)
- print("{:.4f}".format(distance))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement