You will write three small functions about months. Times are in days.
The idea. for the synodic month , the sidereal month and the sidereal year . The next full Moon comes one synodic month after the last, and the Sun's direction turns in a time .
Your tasks.
synodic_month, return the synodic month from the sidereal month and the year.sun_shift, return the angle in degrees through which the Sun's direction turns in days days.full_moon_day, return the day count of the full Moon that comes k months after a full Moon on day first, using 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…