title: Sort tuples by averages of second element
body: <p>I have been able to convert a csv file to list format using a function. In doing so I was able to assign a name to a class number and thereafter 3 additional numbers e.g: </p>
  
  <p>In the csv file:</p>
  
  <pre><code>Hussain     1   7   8   0
  Alexandra   1   0   0   2
  </code></pre>
  
  <p>Became :</p>
  
  <pre><code>['Alexandra', 2],['Hussain', 8]
  </code></pre>
  
  <p>As the sorting method asked for the name in alphabetical order and the person's highest score. I used tuples to complete the code above and would like to carry on using tuples. 
  Now I wish to be able to sort this so that it becomes highest averages to lowest, e.g, the sorting method for averages would result in:</p>
  
  <pre><code>[Hussain, 1.66666666667],[Alexandra, 0.6666666666]
  </code></pre>
  
  <p>These numbers are what I expect as they are the averages of the last three numbers in the csv file as the 2nd column is being ignored here. As Hussain has the highest average he is placed first. I would appreciate any possible help.</p>
  
  <p>What I would like to be done is the following:</p>
  
  <p>I would like to be able to print out all the students in order of highest averages to lowest. As Hussain has a higher average of 1.6, he is printed out first then Alexandra is printed as she has a lower average. These two students are from the same class (shown in the second column of the csv file) and they are to be printed when the user chooses class 1 to be sorted.</p>
  
  <p>TIA</p>