title: Finding mean of a values in a dictionary without using .values() etc
body: <p>I have a dictionary that looks like:</p>
  
  <pre><code>G={'E': 18.0, 'D': 17.0, 'C': 19.0, 'B': 15.0, 'A': 0}
  </code></pre>
  
  <p>I have to find the mean of the values e.g. mean(18,17,19,15,0) using a simple <code>for</code> loop without using built in functions like <code>.values()</code>, <code>.items()</code> and so on. I tried the following but am getting an error:</p>
  
  <pre><code>d=[float(sum(values)) / len(values) for key, values in G]
      return (d)   
  ValueError: need more than 1 value to unpack
  </code></pre>
  
  <p>Can someone help me fix this????</p>