My code fragment below:
for key1 in dict1.keys():
for key2 in dict1[key1]:
if dict1[key1][key2] == None:
gives the following error:
RuntimeError: dictionary changed size during iteration
Any suggestion on how to code this please.
Grokbase › Groups › Python › python-list › November 2003