Answer:
The function in Python3 is as follows
def Distance(x1, y1, x2, y2):
dist = ((x1 - x2)**2 +(y1 - y2)**2)**0.5
return dist
Explanation:
This defines the function
def Distance(x1, y1, x2, y2):
This calculates distance
dist = ((x1 - x2)**2 +(y1 - y2)**2)**0.5
This returns the calculated distance to the main method
return dist
The results of the inputs is:
[tex]32, 32, 54, 12 \to 29.73[/tex]
[tex]52,56,8,30 \to 51.11[/tex]
[tex]44,94,44,39\to 55.00[/tex]
[tex]19,51,91,7.5 \to 84.12[/tex]
[tex]89,34,00,00 \to 95.27[/tex]