You can remember the meaning of 习惯 with this easy mnemonic:
Children learn (习) very fast, don't let them develop bad habits or get accustomed (惯) to being spoiled.
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.