Lichen species were counted on the trees of eight places (the numbers are made up for this lab). You will write a function that grades the air from a count, grade every place, and count the places in each grade. Then the program draws the counts.
The idea. Lichens do not grow where the air is polluted. Take or more species as clean air, to as moderate, and fewer than as polluted.
Your tasks.
grade, return "clean", "moderate" or "polluted" for a number of species.grades to the grade of each place, in the order of places.tally to a dictionary of each grade and the number of places with it.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…