title: Python - Looping through nested dictionaries and fetching values
body: <p>I have the same format of nested dictionaries within a list. I am trying to iterate through every element and find the number of time we have values for <code>summary</code> as <code>through the API</code> and also count the number of assignees for <code>through the API</code>.</p>
  
  <pre><code>[{'id': '101',
   'type': 'log_file',
   'summary': 'Escalated to Mark through the API',
   'assignees': [{'id': 'xyz',
   'type': 'user_reference',
   'summary': 'Mark'}]},
   {'id': '102',
    'type': 'log_file',
    'summary': 'Escalated to Kevin by SMS',
    'assignees': [{'id': 'abc',
    'type': 'user_reference',
    'summary': 'Kevin'}]},
   {'id': '103',
    'type': 'log_file',
    'summary': 'Escalated to Scott through the API',
    'assignees': [{'id': 'pqr',
    'type': 'user_reference',
    'summary': 'Scott'}]}]
  </code></pre>
  
  <p>In the sample above, I expect a count of 2 for number of times <code>through the API</code> has returned for <code>summary</code> and the assignee value as <code>Mark and Scott</code> as these two different people have been assigned.</p>