Small animals were counted in a garden bed and on a mown lawn, in each. You will write Simpson's diversity index as a function, find it for both places, and say which is more diverse. Then the program draws the two values.
The idea. . A place where the numbers are even has a larger .
Your tasks.
simpson, return the index for a list of counts.garden_D and lawn_D to the index of each place.more_diverse to "garden" or "lawn".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…