To declare an empty dictionary, I do:
mydict = dict()
To declare an empty dictionary of empty dictionaries, I can do also:
mydictofdict = dict()
Then add dictionaries when needed:
mydict1 = dict()
mydictofdict.update({1:mydict1})
and elements in them when desired:
mydictofdict[1].update({'mykey1':'myval1'})
Is it pythonic? Is there a better way to perform it?