A closer look at Energy level
Bound electrons occupy allowed energy states.
Differences between states determine which photon energies an atom can absorb or emit. Astronomers exploit this reproducibility when comparing spectra from laboratories, stars, and nebulae.
Three permitted levels can yield more than one line. Which transitions appear depends on the occupied states and on the rules governing transitions. Photons or collisions can provide this excitation energy.
Want to learn more about Energy level? Energy level on Wikipedia.

