You can remember the meaning of 糖果 with this easy mnemonic:
Instead of sugar (糖) and candy, why don't you have some fruit (果) for dinner?
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.