Electrons are assigned to different subshells and shells
according to the Aufbau Principle.
The configuration for any chemical species (atom or ion) must be
the one that gives the energetically the most stable
configuration.
–Orbitals
within a subshell with mutiple orbitals are first half filled before being paired
(Hund’s Rule).
Electrons within the same orbitals have opposite spins (Pauli’s
Exclusion principle).
Evidence for the arrangement of electrons within different
subshells within a shell comes from, amongst others, Ionization Energy
data (see AHL Periodicity I: Ionization Energy).