title: How can I find the average of each similar entry in a list of tuples?
body: <p>I have this list of tuples</p>
  
  <pre><code>[('Jem', 10), ('Sam', 10), ('Sam', 2), ('Jem', 9), ('Jem', 10)]
  </code></pre>
  
  <p>How do I find the average of the numbers coupled with each name, i.e. the average of all the numbers stored in a tuple with Jem, and then output them? In this example, the output would be:</p>
  
  <pre><code>Jem 9.66666666667
  Sam 6
  </code></pre>