Computer Science, asked by jpadhy008, 9 months ago

write √(x2-x1)^2 + (y2-y1)^2 in python

Answers

Answered by saswatabose16032005
3

Answer:

Using laws of indices. Please inform for mistakes if any...

Explanation:

print("Distance Formula Calculator")

x2 = input (" ")

x1 = input (" ")

y2 = input (" ")

y1 = input (" ")

print([{(x2 - x1)**2} + {(y2 - y1)**2}]**(0.5))

Similar questions