You will write three small functions that a navigation receiver or a satellite engineer might use.
The idea. Radio signals travel 300 000 km every second. Distance = speed × time, and time = distance ÷ speed.
Your tasks.
distance_km, return the distance in km for a signal that took seconds to arrive.nearest, the dictionary times holds satellite names and signal times. Return the name of the nearest satellite.up_and_down, return the seconds a signal takes to go up to a satellite height km above the ground and straight down again.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…