title: How to update a specific dictonary value inside a list in Python
body: <p>I have a list like as below:</p>
  <pre><code>list1 = [{'value1': 4, 'value2': False, 'value3': (5, 4)}, {'value1': 6, 'value2': False, 'value3': (5, 0)},
              {'value1': 5, 'value2': False, 'value3': (5, 2)}, {'value1': 4, 'value2': False, 'value3': (5, 4)},
              {'value1': 3, 'value2': False, 'value3': (5, 6)}, {'value1': 2, 'value2': False, 'value3': (5, 8)},
              {'value1': 1, 'value2': True, 'value3': (5, 10)}]
          
  </code></pre>
  <p>in this list I copied the <code>{'value1': 4, 'value2': False, 'value3': (5, 4)}</code> from the list  using  <code>list1.insert(0, get_value_to_duplicate) </code> and
  inserted into the first place.
  now if I try to update any value in first position(dict) it updates the 4th position values as well.</p>
  <pre><code>ele_to_copy=4
  #copied 4th value which needs to be append in the beginning
  get_value_to_duplicate = (next(item for item in lis1 if item[&quot;value1&quot;] == ele_to_copy)) 
  </code></pre>
  <p>#Now update the first value:</p>
  <pre><code>list1[0]['value3'] = (0, 0) 
  </code></pre>
  <p>This makes the list as :</p>
  <pre><code>list1 = [{'value1': 4, 'value2': False, 'value3': (0, 0)}, {'value1': 6, 'value2': False, 'value3': (5, 0)},
              {'value1': 5, 'value2': False, 'value3': (5, 2)}, {'value1': 4, 'value2': False, 'value3': (0, 0)},
              {'value1': 3, 'value2': False, 'value3': (5, 6)}, {'value1': 2, 'value2': False, 'value3': (5, 8)},
              {'value1': 1, 'value2': True, 'value3': (5, 10)}]
  </code></pre>
  <p>so how can I make the changes only in first element of this list instead of updating the older element from where it was copied.</p>
  <p>Could somebody help</p>