A cell has a few pairs of homologues. Each gamete gets one chromosome from every pair. You will list all the gametes, and then count the kinds of gamete and of zygote.
The idea. With pairs, each with 2 choices, there are gametes. Two parents can make zygotes.
Your tasks.
gametes. It gives the set of all gametes. A gamete is a tuple with one chromosome from each pair.kinds. It gives the number of kinds of gamete for n pairs.zygotes. It gives the number of kinds of zygote from two parents with n pairs.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…