title: Dividing values in dictionary
body: <p>I am trying to divide the values stored in two dictionaries. There was a similar answer to this question found here: <a href="https://stackoverflow.com/questions/11840111/divide-the-values-of-two-dictionaries-in-python?answertab=votes#tab-top">Divide the values of two dictionaries in python</a></p>
  
  <p>However, every time I try to make that solution work, I get a syntax error.</p>
  
  <p>Here's my code:</p>
  
  <pre><code>avg_length = {x:float(STRlen[x])/count[x] for x in STRlen}
  </code></pre>
  
  <p>My error:</p>
  
  <pre><code>avg_length = {x:float(STRlen[x])/count[x] for x in STRlen}
                                              ^
  SyntaxError: invalid syntax
  </code></pre>
  
  <p>What am I doing wrong?</p>
  
  <p>Thank you!</p>