--Originally published at Programming the city
Good morning, today I want to show you the code where a function calculates the distance between two points of coordinates, (x1, y1) and (x2,y2).
I could finally did this code with the help of my friend Gustavo Hinojosa.
If you want an advice, just check the function.
And here is the result=