You will write functions for a population whose births fall as it approaches the level that its food can support.
The idea. In each step, births are for animals and a food limit . Deaths are . The population settles where births equal deaths.
Your tasks.
births. It gives the births in one step.next_population. It gives the number of animals after one step.settled. It repeats the step until the number changes by less than 0.01 in one step, and gives that number.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…