title: Adding multiple Values to a dictionary key in python?
body: <p>I would like to add multiple values to a dictonary key in python. The value is again a dict with some paraments changing.. </p>
  
  <p>I have written the following code but that seem to overwrite. any ways to do it effectively?</p>
  
  <pre><code>from collections import defaultdict
  node = 'node 1'
  d = defaultdict(dict)
  d[node] = {'interface':{'Eth1/48':'10.10.10.1'}} --&gt; Here Eth1/48 is dynamically populated.
  
  d[node] = {'interface':{'Eth1/47':'10.10.11.1'}} --&gt; here Eth1/47 is again dynamically populated.
  &gt;&gt;&gt; d
  defaultdict(&lt;class 'dict'&gt;, {'node 1': {'interface': {'Eth1/47': '10.10.11.1'}}})
  </code></pre>
  
  <p>I want the output something like this:</p>
  
  <pre><code>{'node 1':{'interface': {'Eth1/48':'10.10.10.1'}
                          {'Eth1/47':'10.10.11.1'}
  </code></pre>