You will write three small functions for the mole map: grams to moles, moles to molecules, and grams straight to atoms. The program then fills a table for four samples.
The idea. , , and the atoms are the molecules times the atoms in one molecule. .
Your tasks.
moles(m, M) return the number of moles.molecules(n) return the number of molecules.atoms(m, M, k) return the number of atoms in grams, with atoms in each molecule, using the two functions above.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 9 more problems, 2 Python labs and 1 extra course. Everything you have used here stays free, always.