You will write functions for the share of the species that is known, for the number of times one count is larger than another, and for the least number of insects.
The idea. The share known is the described species divided by the total, times . A ratio divides the larger count by the smaller. The least number of insects is the described species times the share of animals times the share of insects.
Your tasks.
share_known. It gives the per cent of the species that is described.times_as_many. It gives how many times as many species the first place has as the second.insects_at_least. It gives the number of insect species from the three numbers.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…