title: Python nested dictionaries - Append data to nested dict without overwriting previous data
body: <pre><code>async for document in client.auto_role.find({}):
      if client.auto_role_cache.get(document.get(&quot;guildID&quot;)):
          client.auto_role_cache[document.get(&quot;guildID&quot;)][&quot;roles&quot;] = {document.get(&quot;roleID&quot;): document.get(&quot;delay&quot;)}
      else:
          client.auto_role_cache[document.get(&quot;guildID&quot;)] = {&quot;roles&quot;: {document.get(&quot;roleID&quot;): document.get(&quot;delay&quot;)}}
  </code></pre>
  <p>Hey, just wondering how if the <code>guildID</code> is in the dict, (meaning there are already roles in the dict) how I can add more roles into it, without deleting the old ones?
  The code block above replaces the old data with the new data.</p>
  <pre><code>guildID {roles: {roleID1: delayHere, roleID2: delayHere}
  </code></pre>
  <p>Do you have to overwrite the entire dict every time you want to add new data? Or is there something similar to .append in a list?</p>
  <p>Surely, I wouldn't have to get the old data, and then add it with the new data every time I want to add new things into the nested dict? That seems very inefficient?</p>