title: Filter out entries in dictionary based on the sum of the keys
body: <pre><code># given I want to find the x largest,
  
  dictionary = {'cat': (3,4,5), 'meow': (6,4,1), 'dog': (1,2,3)}
  x = list(dictionary.values())
  lst = []
  for i in x:
      lst.append(sum(i))
  for num in range (x-1):
      final = (filter(lambda x: sum(x.key()) == lst[num] , dictionary)
  print(final)
  
  # expected answer (if x = 1):
  {"cat": (3,4,5)} 
  #because it has the largest sum (3+4+5)
  </code></pre>
  
  <p>This is what I got so far, but I got EOL while scanning string literal error which means I can't even test to see if it's right. </p>
  
  <p>EDIT: Just tried another method, which seems more succinct. However, how to make it loop for the entire dictionary?</p>
  
  <pre><code>def wrtd2(s):
      dictionary = {}
      for val in s:
          x = max(list(s.items()), key = lambda x: sum(x[1]))
          if x[0] not in dictionary:
              dictionary[x[0]] = x[1]
      return dictionary
  </code></pre>