Adding variables to dictionary : <p>I have a empty dictionary</p>

<pre><code>d = {}
</code></pre>

<p>I have these variables:</p>

<pre><code>key = "foo"
value = 1
</code></pre>

<p>I want to add them to dictionary as <code>key</code> and <code>value</code> variables because they can be change in a for loop. What should be the proper syntax?</p>
