Question: what is the difference of generator and motor?
Answer: A generator converts mechanical energy into electrical energy, while a motor does the opposite - it converts electrical energy into mechanical energy. Both devices work because of electromagnetic induction, which is when a voltage is induced by a changing magnetic field.