title: How to write a program that reads a .txt file that contains words with numbers in a separate column and print out the word with the biggest number?
body: <p>I am very new to coding so this is all I have right now. I am running into problems trying to select the highest number and printing out the word that corresponds with it. </p>
  
  <p>Edit: I am also supposed to write a code that also ignores the <code>'#'</code>character and anything that comes after it.</p>
  
  <pre><code>text = open('heroes.txt', 'r')
  for line in sorted(text, key = lambda line: line.split()[1]):
      if not '#' in line:
          line.isalnum() or line == '_'
          continue
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/ntsQX.png" rel="nofollow noreferrer">This is the text file with the lists</a></p>