You will write three functions: the kinds of gamete a parent can make, the kinds of zygote two parents can make, and the pairs needed for a given number of kinds.
The idea. With pairs of chromosomes, a parent makes kinds of gamete. Any sperm may fuse with any egg, so two such parents can make kinds of zygote.
Your tasks.
gamete_kinds. It gives from the number of pairs.zygote_kinds. It gives the kinds of zygote when both parents have the same number of pairs.pairs_for_kinds. It gives the smallest number of pairs that makes at least the given number of kinds of gamete.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…