title: Find value within a range in lookup table
body: <p>I have the simplest problem to implement, but so far I have not been able to get my head around a solution in Python.</p>
  
  <p>I have built a table that looks similar to this one:</p>
  
  <pre><code>501 - ASIA
  1262 - EUROPE
  3389 - LATAM
  5409 - US
  </code></pre>
  
  <p>I will test a certain value to see if it falls within these ranges, <code>389 -&gt; ASIA, 1300 -&gt; LATAM, 5400 -&gt; US</code>. A value greater than 5409 should not return a lookup value.</p>
  
  <p>I normally have a one to one match, and would implement a dictionary for the lookup.</p>
  
  <p>But in this case I have to consider these ranges, and I am not seeing my way out of the problem.</p>
  
  <p>Maybe without providing the whole solution, could you provide some comments that would help me look in the right direction?</p>
  
  <p>It is very similar to a <code>vlookup</code> in a spreadsheet.</p>
  
  <p>I would describe my Python knowledge as somewhere in between basic to intermediate.</p>