Use the following figure of atomic orbital energies to explain what you observed in the switch of the pz sigma (g) and the pi(u)
On moving from B2 to F2 energy of orbitals decreases this is because of electronegativity increase. From O2 since energy gap between 2S &2P is very less so s-p mixing takes place.
And we get different pattern of molecular orbitals.here energy of Pi MO is greater than sigma Pz orbital....
Use the following figure of atomic orbital energies to explain what you observed in the switch...