Two RrYy pea plants are crossed. You will make the gametes of a parent, count the four kinds of seed in all boxes, and find the share of seeds with a new combination of traits.
The idea. A gamete takes one copy for shape (R or r) and one for colour (Y or y). The function looks already tells you what a seed looks like from its two gametes.
Your tasks.
gametes_of return the four gametes of a parent such as "RrYy".counts to a dictionary of how many boxes give each kind of seed.share_new to the fraction of seeds that are round green or wrinkled yellow.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…