The program holds eight molecules, each as a dictionary of its atoms. You will make it find the atomicity of each, name it monatomic, diatomic, triatomic or polyatomic, and count all the atoms in a mixture of molecules.
The idea. Atomicity is the number of atoms in one molecule. A number in front of a formula multiplies all of it.
Your tasks.
atomicity, add up the numbers of atoms in the dictionary.kind, return "monatomic", "diatomic", "triatomic" or "polyatomic".total, the atoms in .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 4 more problems and 1 Python lab. Everything you have used here stays free, always.