title: Searching dictionary for values
body: <p>Looking to count the number of males in a dictionary over the age of 20. </p>
  
  <p>I have the following dictionary</p>
  
  <pre><code>i={'joe':("male",25), 'fred':("male",39), 'susan':("female",20)}
  </code></pre>
  
  <p>i know how to search the dictionary for a key for example</p>
  
  <pre><code>print ('joe' in i)
  </code></pre>
  
  <p>returns true but</p>
  
  <pre><code>print ('male' in i.values())
  print ('male in i)
  </code></pre>
  
  <p>both return false. how can i get it to return true
  Ultimately i am trying to count the number of males over a certain age in the dictionary</p>