+ 3
As stated in the corresponding lesson, only immutable objects (ie the value of which can't change) can be used as keys to dictionnaries, and dictionnaries themselves are mutable, so not suitable to be a key of a dictionnary. By the way, thank you for precising the exact question, you wouldn't believe how many people don't give the context at all (not entirely their fault, I blame the app too).
12th Sep 2016, 10:53 AM
Zen
Zen - avatar