title: Python - Dictionary with Grade Range
body: <p>I have a python dictionary with Grade Ranges as shown below:</p>
  
  <pre><code>grade_boundaries = {
      'A': [70, 100],
      'B': [60, 69],
      'C': [50, 59],
      'D': [40, 49],
      'E': [30, 39],
      'F': [0, 29],
  }
  </code></pre>
  
  <p>I am fairly new to Python and was wondering, how I can read this dictionary such that I can extract the lower boundary as well as the upper boundary for each grade while comparing an input number. I am able to handle dictionary when there is a single value for the key, but in this scenario, I am not sure how to write the code. </p>