How to modify Python dictionary value and create the list of dictionaries?
<p>I want to modify dictionary and to create a list that contains dictionaries with the modified values. I tried:</p>

<pre><code>mylist = []
mydict = {"one": 10, "two": 20, "three": 30}
for i in [111, 222, 333]:
   mydict["two"] = i
   mylist.append(mydict)
</code></pre>

<p>mylist returns:</p>

<pre><code>[{'three': 30, 'two': 333, 'one': 10}, {'three': 30, 'two': 333, 'one': 10},  {'three': 30, 'two': 333, 'one': 10}]
</code></pre>

<p>I expect to get:</p>

<pre><code>[{'three': 30, 'two': 111, 'one': 10}, {'three': 30, 'two': 222, 'one': 10},  {'three': 30, 'two': 333, 'one': 10}]
</code></pre>

<p>How can I do it?</p>