Four gases are weighed out, g of each. You will write a function for the molar mass from the formula, a function for the number of molecules, and then find the sample with the most molecules.
The idea. is the sum of the atomic masses in the formula, and .
Your tasks.
molar_mass, return the molar mass in g/mol from the dictionary of atoms and their counts.molecules, return the number of molecules in the sample.most to the name of the sample with the most molecules.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 and 2 Python labs. Everything you have used here stays free, always.