Question: how electricity is produced by magnet?
Answer: A magnetic field pulls and pushes electrons in certain objects closer to them, making them move.
Metals like copper have electrons that are easily moved from their orbits.
If you move a magnet quickly through a coil of copper wire, the electrons will move - this produces electricity.