You will write three functions about the phases of the Moon. Ages are in days since new Moon, and angles in degrees.
The idea. The angle from the Sun is . The lit share of the disc is . The Moon is waxing for the first half of the month.
Your tasks.
elongation, return the angle from the Sun for a given age.lit_share, return the lit share for a given angle.is_waxing, return True for the first half of the month.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…