A shortening of dynamo-electric machine. The element dynamo- is ultimately from Ancient Greek δύναμις (dúnamis, “power”).
Practice speaking and memorizing "dynamo" and many other words and sentences in English.