You will write functions for a culture of bacteria and for the fermentation of glucose by yeast.
The idea. Each division doubles the bacteria, so after divisions one bacterium gives . In a reaction the total mass does not change.
Your tasks.
cells_after. It gives the number of bacteria after some minutes, from a starting number, when each bacterium divides every minutes_between minutes.carbon_dioxide_mass. It gives the mass of carbon dioxide from the mass of glucose and the mass of ethanol.share_percent. It gives a part as a percentage of the whole.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…