title: Function to add and sum even numbers
body: <p>I wrote this piece of code to find even values in a dictionary and output the sum. For some reason, I think the code is only getting the first value in the dictionary. A little insight would be much appreciated:</p>
  <pre><code>def sumEven(dct):
      total = 0
      for val in dct.values():
          if (val % 2 == 0):
              total += val
              return total
          
  user_dct = {'hero':6,
              'battlefields':4,
              'villains':'everyone',
              'outcome':1,
              'possibilities':999}
  
  sumEven(user_dct)
  </code></pre>