Detailed Solution:
The correct answer is “To convert the mechanical energy into electric energy”.
A dynamo is a type of electrical generator that uses the principles of electromagnetic induction to convert mechanical energy (like rotation) into electrical energy.