Each non-chordate phylum has a feature that gives it away. You will finish a key that names the phylum from one feature, then use it on a list of animals.
The idea. A dictionary can hold a key. Each telling feature is a key of the dictionary, and the phylum is its value.
Your tasks.
key: "comb plates" for "Ctenophora", and "flame cells" for "Platyhelminthes".phylum_of, return the phylum for a feature, or "unknown" if the feature is not in the key.cnidarians to a list of the names of the animals that are cnidarians, in the order of animals.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…