You will write a small calendar of the menstrual cycle. It gives the day of ovulation, the phase of any day, and the number of days in each phase.
The idea. Ovulation is days before the next menstruation. Days to are the menstrual phase. The days between day and ovulation are the follicular phase. The days after ovulation are the luteal phase.
Your tasks.
ovulation_day. It gives the day of ovulation for a cycle of length days.phase. It gives "menstrual", "follicular", "ovulation" or "luteal" for a day.phase_lengths. It gives a dictionary with the number of days in each phase.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…