title: Counting values in a dictionary that are greater than a certain number in Python?
body: <p>I'm looking to create a function that prints a count of the number of times a grade is found to be greater than or equal to 90.</p>
  
  <p>So if the dictionary is:</p>
  
  <pre><code>d = {'Luke':'93', 'Hannah':'83', 'Jack':'94'}
  </code></pre>
  
  <p>The output should be 2</p>
  
  <p>I get the following error when trying to run my code:
      ValueError: invalid literal for int() with base 10: 'Tom'</p>
  
  <pre><code>def overNum():
      d = {'Tom':'93', 'Hannah':'83', 'Jack':'94'}
      count = 0
  
  
      for number in d:
          if int(number) in d and int(number) &gt;= 90 in d:
              count += 1
  
              print(count)
  </code></pre>
  
  <p>if the user inputs: numTimes()   the output should be:</p>
  
  <pre><code>2
  </code></pre>