Generator: A general name given to a machine for transforming mechanical energy into electrical energy.
Electricity: It is secondary energy source which means that we get it from the conversion of other sources of energy like coal, natural gas, oil, nuclear power and other natural sources, which are called primary sources. Electricity is a basic part of nature and it is one of our most widely used form of energy.