Five animals are listed with their seven levels of classification. You will count how many levels two animals share, find the closest relative of the wolf, and name the last level that the wolf and the Bengal fox share. Then the program draws a bar for each animal.
The idea. Go down the two lists together, from the kingdom. Count the levels until the first one that differs.
Your tasks.
shared, return how many levels the animals a and b share.closest to the animal, other than the wolf, that shares the most levels with the wolf.last_level to the name of the last level that the wolf and the fox share.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…