A cell can break glucose down with oxygen or without it. You will write two small functions, one for the ATP made and one for the glucose needed. Then the program draws the ATP from ten glucose molecules both ways.
The idea. With oxygen, one glucose molecule gives ATP. Without oxygen, it gives ATP. To find the glucose for some ATP, divide, and round up to a whole molecule.
Your tasks.
atp_made, return the ATP from glucose molecules, with oxygen when oxygen is True.glucose_needed, return the smallest whole number of glucose molecules that gives at least atp ATP.times to how many times as much ATP one glucose gives with oxygen as without it.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…