title: Trying to print the first element of a nested list using list comprehension
body: <p>I have done my research on the web, even looked at solution for this particular problem from HackerRank but since it is supposed to be an exercise with list comprehension, I keep to it.</p>
  <p>I keep getting <code>&lt;generator object &lt;genexpr&gt; at 0x04246760&gt;</code> for the following code:</p>
  <pre><code>mainList = []
  
  for _ in range(int(input())):
      name = input()
      score = float(input())
  
  mainList.append([name,score])
  
  mainList.sort(key = lambda x: [x[1],x[0]])
  mainList = list(filter(lambda x: x[1] != mainList[0][1], mainList))
  
  print([y for y,z in x if z == mainList[0][1]] for x in mainList)
  print(y for x in mainList for y,z in x if z == mainList[0][1])        
  </code></pre>
  <p>Using debug in VSCode, the content of <code>mainList</code> is exactly what I am expecting but the print part errors out.
  Both <code>print(...)</code> are my attempt.  I just need to know why they don't work.</p>
  <p>Here is the input data:</p>
  <pre class="lang-none prettyprint-override"><code>5
  Harry
  37.21
  Berry
  37.21
  Tina
  37.2
  Akriti
  41
  Harsh
  39
  </code></pre>