from math import pow, sqrt

x1, y1 = map(float, input().split())
x2, y2 = map(float, input().split())

distance = sqrt(pow(x2 - x1, 2) + pow(y2 - y1, 2))

print(f"{distance:.4f}")

Solve Distance Between Two Points in python
Solve Distance Between Two Points in python
