Create a list of defaultdict in python
<p>I am doing the following :</p>

<pre><code>recordList=[lambda:defaultdict(str)]
record=defaultdict(str)
record['value']='value1'
record['value2']='value2'
recordList.append(record)
for record in recordList:
    params =  (record['value'],record['value2'],'31')
</code></pre>

<p>i am getting the error :</p>

<blockquote>
  <p>TypeError: 'function' object is not
  subscriptable</p>
</blockquote>

<p>what is wrong here ?</p>
