Error message "TypeError: descriptor 'append' requires a 'list' object but received a 'dict'"
<p>In the <em>for</em> loop I have a dictionary object like this:</p>
<pre><code>mob1 = {
    &quot;Item&quot;: item1,
    'Price': price1,
    'Desc': desc1
}
</code></pre>
<p>And I tried to append it like:</p>
<pre><code>list.append(mob1)
</code></pre>
<p>I get the following error:</p>
<pre class="lang-none prettyprint-override"><code>Traceback (most recent call last):
  File &quot;/home/turbolab/Documents/python_test/Sep 23 data_to_json test.json&quot;, line 32, in &lt;module&gt;
    list.append(mob1)
TypeError: descriptor 'append' requires a 'list' object but received a 'dict'
</code></pre>