title: What do the qualifiers [0][1] do?
body: <p>Please consider the following code which compiles and runs</p>
  <pre><code>import numpy as np
  
  tgt = np.array([3,5,8,10,12,15])
  
  num_guesses = 10
  results =[]
  
  for g in range(num_guesses):
      guess = np.random.uniform(low = tgt.min(), high = tgt.max())
      total_dist = np.sum((tgt-guess)**2)
      results.append((total_dist, guess))
  
  best_guess = sorted(results)[0][1]
  
  print(best_guess)
  </code></pre>
  <p>Can someone explain what the qualifiers <code>[0][1]</code> do to come up with the <code>best_guess</code> result? thanks</p>