⟩ Do you know principle of operation of a generator?
An electric generator is a machine that converts mechanical energy into electrical energy. An electric generator is based on the principle that whenever flux is cut by a conductor, an e.m.f. is induced which will cause a current to flow if the conductor circuit is closed. The direction of induced e.m.f. (and hence current) is given by Fleming’s right hand rule.