Answer the question carefully by analysing the circuit diagram given below:
 
Filament.PNG
circuit diagram
 
What is the function of the filament in the electric bulb?