Python cycle through list of dicts to find attributes
<p>I've got a complex JSON stucture which has been loaded into a dict:</p>

<pre><code>{
  "assets": [
    { 
      "account": "Prod",
      "distributiongroups": [],
      "name": "Admin",
      "networks": [
        { 
        ...
        },
    { 
       "account": "Dev",
       "distributiongroups": []
    ...
</code></pre>

<p>I'd like to get a list of all account names, my problem is that with </p>

<pre><code>accounts = data['assets'][0]['name']
</code></pre>

<p>I just get the first account, is there any simple way to cycle through all list items without writing a long loop? Something like </p>

<pre><code>accounts = data['assets'][0:]['name']
</code></pre>