The simplified key to the five kingdoms asks four questions in order: a true nucleus? many cells? photosynthesis? a wall of chitin? You will write the key, sort seven organisms with it, and find the organisms that the key puts in the wrong kingdom. Then the program draws how many land in each kingdom.
The idea. A key is a tool with exceptions. Compare its answers with the true kingdoms in truth.
Your tasks.
kingdom, the key, so that it returns one of the five kingdoms.by_kingdom to a dictionary of each kingdom and the list of names the key puts in it, in the order of organisms.wrong to the names whose key answer differs from truth, in order.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…