You will write three functions about light and radio signals between the Earth and the Moon. Distances are in km and times in seconds.
The idea. Light and radio travel at . One way takes . An echo or a reply takes . Turned round, an echo after a time means a distance .
Your tasks.
one_way, return the time for a signal to cross the distance once.round_trip, return the time for an echo.distance_from_echo, return the distance from an echo time.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…