Carbon, sulphur and hydrogen burn in oxygen: , , . You will make the program find the mass of oxide from of each, the oxygen that each uses, and the element that needs the most oxygen.
The idea. For each element, a fixed mass gives a fixed mass of oxide: of carbon gives of , of sulphur gives of , of hydrogen gives of water. The oxygen used is the oxide minus the element.
Your tasks.
oxide_mass, return the oxide from m grams, given the pair (a, b): a grams give b grams.oxygen with the oxygen used by of each element.most_oxygen, the element that uses the most oxygen.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 1 more problem, 1 Python lab and 1 extra course. Everything you have used here stays free, always.