You will write four small functions about the lanthanoid ions. They count the 4f electrons of an ion, the unpaired electrons, the spin-only moment, and then list the charges that leave an empty, half-full or full 4f subshell.
The idea. The ion of the element with atomic number has electrons in 4f. Unpaired electrons: up to 7, then . A count of 0, 7 or 14 is a stable subshell.
Your tasks.
f_electrons(z, charge) so that it returns the number of 4f electrons.unpaired(f) so that it returns the number of unpaired electrons.spin_only(u) so that it returns the moment in BM.stable_charges(z) so that it returns the list of charges among 2, 3 and 4 for which the ion has 0, 7 or 14 electrons in 4f.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…