Each organism below is described by two facts: whether its haploid stage is a many-celled body, and whether its diploid stage is. You will write a function that names the pattern of the life cycle, sort all eight organisms, and count the diplontic ones.
The idea. Only a many-celled haploid body: haplontic. Only a many-celled diploid body: diplontic. Both: haplo-diplontic.
Your tasks.
cycle(haploid_body, diploid_body) so that it returns "haplontic", "diplontic" or "haplo-diplontic".result with each organism and its pattern.diplontic to the number of diplontic organisms.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…