Answer the following question given this paragraph: 

Generators and motors are almost identical in construction but convert energy in opposite directions. Generators convert mechanical energy to electrical energy and motors convert electrical energy to mechanical.


Q: Generators convert mechanical energy to which kind?


A:
electrical