What is the meaning of penultimate shell

What is the meaning of penultimate shell

The shell which is before the valence shell is called penultimate shell.
If ā€˜nā€™ is the valence shell then (n-1) is the penultimate shell.

Transition elements contain unpaired electrons in penultimate shells.