Geodesic Python W3schools Exercise