Explain the function of a fuse in an electrical circuit.
A fuse is a safety device in electrical circuits that protects against excessive current. It contains a metal wire or strip that melts when too much current flows through it, thereby interrupting the circuit and preventing damage or fire.