title: What can I do if I have 2 equal average?
body: <p>I have a list of students and some notes, and I have to find the average of each student's grades and show them the following way(if the average is greater than or equal to 6.0):</p>
  
  <p>[student name, average] (in descending order of the average). </p>
  
  <p>I did this, but the problem is that I have 2 equal averages and I can not correspond with the name of the student, he takes my first student with the average '6.0' in both cases.</p>
  
  <p>My lists look like this: </p>
  
  <pre><code>info = [['Frank Morgan', '7.89', '3.19', '6.90', '9.90'], ['Jesse Lawrence', '6', '6', '6', '6'], ['Mark Porter', '9.00', '7.87', '9.12', '10.00'], ['Philip Sanchez', '6', '6', '6', '6']]
  
  average= [6.970000000000001, 6.0, 8.9975, 6.0]
  </code></pre>
  
  <p>I want to create the following:</p>
  
  <pre><code>result = [['Frank Morgan', 6.970000000000001], ['Jesse Lawrence', 6.0],['Mark Porter', 8.9975], ['Philip Sanchez', 6.0]]
  </code></pre>
  
  <p>I tried in the following way:</p>
  
  <pre><code>result = []
  for i in average:
      if i &gt;= 6.0:
          result.append([info[average.index(i)][0], i])
  print result
  </code></pre>
  
  <p>But I got:</p>
  
  <pre><code>result = [['Frank Morgan', 6.970000000000001], ['Jesse Lawrence', 6.0],['Mark Porter', 8.9975], ['Jesse Lawrence', 6.0]]
  </code></pre>
  
  <p>'Jesse Lawrence' instead of 'Philip Sanchez'</p>
  
  <p>Please help me to find another solution for this matching problem.</p>