Python dictionary (key1, key2) append more than one value to same key pair : <p>Trying to create a dictionary of two keys and having more then one value.</p>

<pre><code>myList = [[('2016-11-01', 'USD'), 'ECB News'],
         [('2016-11-01', 'USD'), 'FED News'],
         [('2016-11-02', 'EUR'), 'Brexit News'],
         [('2016-11-03', 'USD'), 'Yellen Speaking']]

myDict = defaultdict(lambda: defaultdict(list))
for d, value in myList:
    print(d, value)
    myDict[d].append(value)  #&lt;&lt;&lt;----- Error here

print(myDict)
</code></pre>

<p>getting Error: </p>

<pre><code>   myDict[d].append(value)
AttributeError: 'collections.defaultdict' object has no attribute 'append'
</code></pre>

<p>Expected output: Append same key pair values together.</p>

<pre><code>{[('2016-11-01', 'USD'): 'ECB News', 'FED News'],
         [('2016-11-02', 'EUR'): 'Brexit News'],
         [('2016-11-03', 'USD'): 'Yellen Speaking']}
</code></pre>
