title: How do I update an array that contains a dictionary with key/value pairs?
body: <p>I am iterating over an object that has multiple key/value pairs and I'd like to create an array of each time it iterates while updating specific values where the keys are found. I have the logic for looking for specific keys, but I'm drawing a blank on how to get an array of dictionaries.</p>
  <pre><code>data = [{'source_id': source_id,
           'order_items_code': order_items_code,
           'color': color,
           'print_sku': print_sku,
           'monogram_type': monogram_type,
           'letters': letters,
           'shadow': shadow,
           'front': front,
           'stripes': stripes
           }]
  </code></pre>
  <p>edit for clarification:</p>
  <p>After iterating through the entire object, data will be appended with however many dictionaries with updated values here:
  <a href="https://i.stack.imgur.com/sazpl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sazpl.png" alt="enter image description here" /></a></p>