Six plants are listed with the way their stamens are joined. You will write a function that names the family, sort all six plants, and list the monocots.
The idea. Nine stamens joined and one free: Fabaceae. Stamens joined to the petals: Solanaceae. Stamens joined to the tepals: Liliaceae, a monocot.
Your tasks.
family(stamens) so that it returns "Fabaceae", "Solanaceae" or "Liliaceae".families with each plant and its family.monocots to a list of the plants that belong to a monocot family.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…