The electron can gain the energy it needs by absorbing light. If the electron jumps from the second energy level down to the first energy level, it must give off some energy by emitting light. The atom absorbs or emits light in discrete packets called photons, and each photon has a definite energy. Only a photon with an energy of exactly 10.2 eV can be absorbed or emitted when the electron jumps between the n = 1 and n = 2 energy levels.
the electron in the atom are two different energy levels