You will write functions for the share of a group among the extinct species, for the number of species lost in a century, and for the yearly loss of a model community.
The idea. A share is the part divided by the whole, times . A rate for a century divides the species by the number of years and multiplies by . If a fraction is left after years, the share lost each year is .
Your tasks.
share. It gives the per cent that part is of whole.per_century. It gives the species lost for each century.yearly_loss. It gives the per cent lost each year.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…