Each atom in the list is given by its numbers of protons, neutrons and electrons. You will make the program add up the mass of each atom, find the share of the mass that is in the nucleus, and find the atom whose electrons carry the biggest share.
The idea. A proton and a neutron each have a mass of about , and an electron only . So the nucleus holds almost all the mass.
Your tasks.
mass, return the mass of an atom in u.nucleus_share, return the percentage of the mass that is in the nucleus.most_electron, the name of the atom whose electrons carry the biggest share of its mass.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…