Replace None in a python dictionary

Viewed 32232

I happen to have a complex dictionary (having lists, dicts within lists etc). The values for some of the keys are set as None

Is there a way I can replace this None with some default value of my own irrespective of the complex structure of the dictionary?

6 Answers
Related