When an electron goes from a higher shell to a lower shell then it loses energy.
A photon is a particle of light defined as a discrete bundle (or quantum) of electromagnetic (or light) energy.
When an electron goes from a higher shell to a lower shell then it loses energy.
So, when an electron moved from shell n = 2 to shell n = 1 then a photon of energy is released.
Learn more about photons here:
https://brainly.com/question/14838916
#SPJ1