You will write functions for the next size of a population, for its sex ratio and for the kind of its age pyramid.
The idea. The next size is . The sex ratio is the females for every males. A pyramid is expanding if the pre-reproductive share is more than points above the reproductive share, stable if they are within points, and declining otherwise.
Your tasks.
next_population. It gives the size at the end of the year.sex_ratio. It gives the females for every males.kind. It gives "expanding", "stable" or "declining".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…