Bacteria with heavy DNA are moved to a light medium. You will write three functions that tell what the tube shows after any number of generations.
The idea. After generations a starting molecule has made molecules. Two of them are hybrid, and the rest are light. With zero generations all the DNA is still heavy.
Your tasks.
molecules. It gives the number of molecules after g generations, from start heavy molecules.hybrid_percent. It gives the per cent of the molecules that are hybrid. For zero generations it gives 0.light_percent. It gives the per cent of light molecules. It is 0 for 0 and 1 generations.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…
With Standard, you also open 12 more problems, 2 Python labs and 1 extra course. Everything you have used here stays free, always.