A dictionary holds the pairs of the chapter. You will look up the host or source of a product, find a year, and count the wrong pairs in a student's list.
The idea. Each application has one organism or tool and one fact. A pair is wrong if it does not agree with the dictionary.
Your tasks.
source_of. It gives the organism or tool for a product, or "unknown" if the product is not in the dictionary.products_of_year. It gives the list of products that go with a year, in the order of the dictionary.wrong_pairs. It gives the number of pairs in a list of (product, source) that do not agree with the dictionary.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…