title: Accessing an element of a nested dictionary that is in a list of other several dictionaries
body: <p>I am looping through a very large nested dictionary (originally json) to rename some of the keys. At the moment I managed to loop through each element of the list inside the dictionary that is in the list (it is inside one more dictionary) one by one. The number of elements in the list is different for each of the items in the main dictionary (json). </p>
  
  <p><em>The below works but is not scaleable.</em> </p>
  
  <pre><code>for el in a:
    el['name']['info'][0]['details'] = el['name']['info'][0].pop('DT')
    el['name']['info'][1]['details'] = el['name']['info'][1].pop('DT')
  </code></pre>
  
  <p>I also tried this, it doesn't work it seems:</p>
  
  <pre><code>for el in a:
    el['name']['info']['details'] = el['name']['info'].pop('DT')
  </code></pre>
  
  <p>Is there something I could write there that would apply the changes to all the elements in the list of these dictionaries?</p>