You will write three small functions for the lessons on the assisted reproductive technologies: the number of blastomeres, the site of a transfer, and the number of cycles for a target chance.
The idea. The number of blastomeres doubles at each division. The rule of decides the site. The chance of at least one success in cycles is .
Your tasks.
blastomeres. It gives the number of blastomeres after some divisions.site. It gives "fallopian tube" for blastomeres or fewer, and "uterus" for more.cycles_needed. It gives the smallest number of cycles for which the chance of at least one success is at least target.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…