A list gives ten plants with their group and their root system. You will count the plants with each root system, list the plants with a tap root system, and find the share with a fibrous root system. Then the program draws the counts.
The idea. Each plant is a dicot or a monocot. It has a tap root system or a fibrous root system.
Your tasks.
counts to a dictionary of each root system and the number of plants that have it.tap_plants to the names of the plants with a tap root system, in the order of the list.share_fibrous to the per cent of plants with a fibrous root system.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…