title: How do I append multiple lists to one key in a python dictionary?
body: <p>I want to append values to a key in a dictionary, where the values are actually lists. There could be one list, or there could be multiple lists. </p>
  
  <p>The current way I'm trying to do it, the new list I try to add on just overwrites the last list. As far as I can tell, I can't append a list to a dict like so either:</p>
  
  <pre><code>my_dict.append(my_list))
  </code></pre>
  
  <p>Current code that overwrites each other:</p>
  
  <pre><code>urls[domain] = [uri, datecreated]
  </code></pre>
  
  <p>Is this possible? If so, how?</p>
  
  <p>Sample results would look like this </p>
  
  <pre><code>print all keys and values in urls{}:
  google.com : ['/helloworld', 2010-04-02], ['/apage/anotherpage', 2015-09-12] 
  microsoft.com : ['/awebpage', 2009-02-01], ['/bananas', 2015-12-24], ['/anothergreaturi', 205-12-10] 
  </code></pre>