A dictionary gives the mass of one molecule of each nitrogenous waste in atomic mass units, and the number of nitrogen atoms in it. You will find the share of nitrogen in each, the mass of a waste that carries a given mass of nitrogen, and the waste of an animal.
The idea. The share of nitrogen is the mass of the nitrogen atoms divided by the mass of the molecule. Use u for one nitrogen atom.
Your tasks.
nitrogen_share. It gives the per cent of nitrogen by mass in a waste.waste_mass. It gives the grams of a waste that carry a given mass of nitrogen.waste_of. It gives the main waste of an animal from the dictionary animals.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…