You will write three small functions that use . Distances are in AU and times in years.
The idea. and . For a comet, is the average of the nearest and farthest distances.
Your tasks.
period, return from .semi_major, return from .comet_period, return the period of a comet from its nearest and farthest distances.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…