How does a light bulb transform electrical energy into radiant energy?

The metal filament is heated hot so the the outer electrons on the atoms become exited to higher unstable energy levels, and as they come back to natural levels, light is emitted.

THANK YOU SO MUCH!!!