Answer:
The light of a light bulb contains all the wavelengths of visible band which on passing through diffraction grating appear in the form of continuous spectra.
Discrete lines are observed when the electron makes a transition from higher orbit to lower orbit releasing a photon having energy which is equivalent to the energy difference between the two orbits.