Motors and generators operate similarly as coils rotate in magnetic fields to produce either electrical or mechanical energy.
Both motors and generators can be explained in terms of a coil that rotates in a magnetic field. In a generator, the coil is attached to an external circuit and turned, inducing an emf. In a motor, a current-carrying coil experiences a force creating torque to make it turn.
https://brainly.com/question/41507509