title: Multiplying and then summing values from two dictionaries (prices, stock)
body: <p>I need to multiply the values from each key and then add all the values together to print a single number. I know this probably super simple but i'm stuck</p>
  
  <p>In my mind, I'd address this with something like: </p>
  
  <pre><code>for v in prices:
  total = sum(v * (v in stock))
  print total
  </code></pre>
  
  <p>But something like that isn't going to work :)</p>
  
  <pre><code>prices = {
  "banana": 4,
  "apple": 2,
  "orange": 1.5,
  "pear": 3 }
  
  stock = {
  "banana": 6,
  "apple": 0,
  "orange": 32,
  "pear": 15 }
  </code></pre>