Twelve scientific names of plants are listed. You will take the genus of each, count the species in each genus, and find the biggest genus. Then the program draws a bar for each genus.
The idea. The genus is the first word of a scientific name. Names that share it are close relatives.
Your tasks.
genera to the genus of each name, in the order of the list.counts to a dictionary of each genus and its number of species.biggest to the genus with the most species.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…
With Standard, you also open 4 more problems and 1 Python lab. Everything you have used here stays free, always.