You will write three small functions about how often satellites go round the Earth.
The idea. A day has 1440 minutes, so trips in a day = 1440 ÷ minutes for one trip. A geostationary satellite needs about 1436 minutes for one trip, the time the Earth takes to spin once.
Your tasks.
trips_per_day, return the number of trips a satellite makes in a day.is_geostationary, return True if a trip takes between 1435 and 1437 minutes, and False if it does not.fastest, the dictionary satellites holds names and minutes for one trip. Return the name of the satellite with the shortest trip.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…