The filling order, Hund's rule and the spin-only formula fit in a few lines of code. You will sort the subshells into filling order, count unpaired electrons, and find the magnetic moment of an ion.
The idea. Subshells fill in order of , the smaller first for a tie. A subshell of orbitals with electrons has unpaired up to half full, then . BM.
Your tasks.
subshells into filling order.unpaired, return the unpaired electrons for k electrons in a subshell with quantum number l.mu_co, the moment of , which is .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 6 more problems and 1 Python lab. Everything you have used here stays free, always.