You will write three functions about places on the Earth. Latitudes are positive to the north and longitudes positive to the east, in degrees.
The idea. One degree of latitude is . Local noon comes minutes earlier for each degree further east. The ground at latitude moves at in km/h, with .
Your tasks.
north_south_km, return the north-south distance between two latitudes.noon_gap, return the gap in minutes between the local noons at two longitudes.ground_speed, return the speed of the ground in km/h at a latitude.Run your code once to unlock the worked solution.
Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…