You will write three functions: the mutations that a model cell is expected to have, the effect of radiation, and the kinds of zygote from the kinds of gamete.
The idea. In a model, each gene has a chance of changing each time the cell divides. The expected number of changes is the genes times the chance times the divisions. Radiation multiplies the chance. Random fertilisation multiplies the kinds of gamete of the two parents.
Your tasks.
expected_mutations. It gives the expected changes from the genes, the chance per million and the number of divisions.after_radiation. It gives the expected changes when the chance is multiplied by a factor.kinds_of_zygote. It gives the kinds of zygote when the two parents make the given 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…