You will write three functions about small bodies and spacecraft. Distances are in AU, periods in years and times in minutes.
The idea. Kepler's third law is . An orbit with eccentricity goes out to . Light takes to cross .
Your tasks.
period, return the orbital period in years for a semi-major axis a.farthest, return the farthest distance for a semi-major axis a and an eccentricity e.radio_minutes, return the minutes a signal takes to cover d AU. If back_and_forth is True, return the time for there and back.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…