How to set all values of a complex dict to the same one? <p>Give a very complex dict <em>dict_a</em>, i.e., some key corresponses to simple value (level-<em>1</em>), but others many corresponse to another dict (level-<em>n</em>).</p> <p>My question is how to set all its values, whether level-<em>1</em> or level-<em>n</em>, to one single value, say 100.</p> <p>For example:</p> <pre><code>a = 10 b = {1: 11, 2: 22, 3{1: 13, 2: {4: 33}}} c = {1: a, 2: b} </code></pre> <p>how to set values of dict c to 0?</p>