Answer:
x1 = input("enter x value of first number: ")
y1 = input("enter y value of first number: ")
x2 = input("enter x value of second number: ")
y2 = input("enter y value of second number: ")
ans = (float(x2)-float(x1))**2 + (float(y2)-float(y1))**2
ans = pow(ans, 0.5)
print(ans)