title: Fetching data that matches a value.
body: <p>For population</p>
  
  <pre><code>popfrance = 10000
  popchina = 202434
  popcanberra = 102042
  popengland = 224309
  popgermany = 203454
  popgoldcoast = 90323
  popmelbourne = 100000
  popparis = 224224
  popperth = 10000
  popsydney = 292403
  </code></pre>
  
  <p>Then :</p>
  
  <pre><code>dic = {'canberra': 79693.11338661514,
         'china': 40246.748450913066,
         'england': 3043.004178666758,
         'france': 0.0,
         'germany': 21558.2996208357,
         'gold coast': 67781.1426515405,
         'melbourne': 92804.01912347642,
         'paris': 40908.82213277263,
         'perth': 65046.35819797423,
         'sydney': 43786.0579097594}
  distance = 10000
  for k,v in dic.iteritems():
      # k points to the key, and v points to the value
      if v &lt; distance:
          print k,"is within distance", distance
      else:    
          print k,"is outside distance",distance
  </code></pre>
  
  <p>Which produces the names of places and if they are within a distance. I have earlier in the code stored data for each population i.e France = 100000 people (not realistic but testing) </p>
  
  <p>What I want to know please. Is there a way that I can get all the data for the places that appear in the greater than list. i.e if distance = 10 and france is outside distance. Can I then call the population data for France at all? Basically I want it so that if a place is outside distance load its population data. Is this achievable in python?</p>