title: Divide dictionary values by another value in the same key in Python
body: <p>I am trying kind of a complicated operation here. I have a dictionary with the following structure:</p>
  
  <pre><code>'Paul ': [5, Counter({'i': 1, 'in': 1, 't': 1, 'fa': 1, 'cr': 1})],
  'Lisa ': [4, Counter({'f': 3, 'bo': 1})], 
  'Tracy ': [6, Counter({'sl': 3, 'fi': 1, 'an': 1, 'piz': 1})], '
  'Maria': [2, Counter({'t': 2})]
  </code></pre>
  
  <p>What I need to do is to divide each of the Counter values for the first value in the key and append those values to the key. So that I would have something equivalent to:</p>
  
  <pre><code>'Paul': [5, Counter({'i': 1, 0.2, 'in': 1, 02, 't': 1, 02, 'cr': 1, 0.2})], 
    'Lisa ': [4, Counter({'f': 3, 0.75, 'bo': 1, 0.25})], 
    'Tracy ': [6, Counter({'sl': 3, 0.5, 'fi': 1, 0.16 'an': 1, 0.16 'piz': 1, 016 })], '
    'Maria': [2, Counter({'t': 2, 1})]
  </code></pre>
  
  <p>In which the values on counter on the first line are divide by 5, and by 4 on the second line, and so on. I have also tried to have two different dictionaries with the same key and divide each value of the first dictionary keys by the value of the second dictionary's key, </p>
  
  <pre><code>k: float(dict1[k])/dict2[k] for k in dict1.keys() &amp; dict2.keys()}
  </code></pre>
  
  <p>but couldn't do it either. Is there a straightforward way to do this? I really thank you for your help!</p>