Python dictionary printing specific value : <p>I have this variable with two dictionaries in it:</p>

<pre><code>dic = {"id": 2125, "role": "Policy", "visible": "Users", "name": "Peering", "phone": "", "email": "peering@fb.com"}, {"id": 2568, "role": "NOC", "visible": "Users", "name": "Network Operations", "phone": "+1 650 308 7200", "email": "noc@fb.com"}
</code></pre>

<p>I want to print de e-mail addresses which belongs to 'role' NOC!!</p>

<p>I can use </p>

<pre><code>for key in dic:
    if key['role']=='NOC':
       print(key['email'])
</code></pre>

<p>But I don't want to use if key['role']=='NOC': . Anyone a better idea? to print email address which belongs to a specific role.</p>
