Advertisement
Guest User

Untitled

a guest
Apr 6th, 2020
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1. import math
  2.  
  3. x1, x2 = input().split()
  4. y1, y2 = input().split()
  5. X = (float(x2)-float(x1)) ** 2
  6. Y = (float(y2)-float(y1)) ** 2
  7. dis = X + Y
  8. distance = math.sqrt(dis)
  9. print("{:.4f}".format(distance))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement