Which purpose does a light bulb serve in a circuit

The purpose of a light bulb in a circuit is to convert electrical energy into light energy. When a current flows through the filament of the light bulb, it heats up and emits light. This allows us to have artificial lighting in various applications such as homes, offices, and street lights.