A dictionary holds the typical use failure rates of some methods, as pregnancies in the first year among users. You will find the pregnancies expected in a group, the chance over several years, and the method with the lowest rate.
The idea. In a group of couples, about pregnancies are expected in a year. The chance of at least one pregnancy in years is .
Your tasks.
expected. It gives the pregnancies expected in a year among couples couples.chance. It gives the chance of at least one pregnancy in years years, as a number from to .best. It gives the name of the method with the lowest rate.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…