Advertisement
Guest User

Untitled

a guest
Feb 28th, 2020
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1. x1, y1 = [float(i) for i in input().split()]
  2. x2, y2 = [float(i) for i in input().split()]
  3. distance = ((x2 - x1) ** 2 + (y2 - y1) ** 2) ** 0.5
  4. print(f'{distance :.3f}')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement