appending elements to dictionary in python
<pre><code>dictionary = {}

tabl = [('maint_id', 1003L), ('type', 'DB'), ('number', '102')]
for i in tabl:
     dictionary{i[0]:i[1]}


print dictionary
</code></pre>

<p>It is giving me only the last key value pair in my dictionary. it is overwritting all the elements.  what is wrong with this code.. any help</p>
