You will write three small functions that turn what we see from the Earth into the size and the period of an orbit. Angles are in degrees and times in days.
The idea. For an inner planet at its greatest elongation the distance from the Sun is (in AU). With days and a synodic period , an inner planet has and an outer planet has .
Your tasks.
inner_distance, return the distance in AU from the elongation in degrees.inner_period, return the sidereal period in days.outer_period, return the sidereal period in days.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…