Dynamo is a device that coverts:

mechanical energy into electrical energy

Alternating current into direct energy

Heat energy into electrical energy

Electrical energy into mechanical energy