Nesting and using defaultdict in layers I can not get angry if I write a nonexistent key like d["x"]["y"]["z"] Maybe a good girl may not be imitating >>> from ...