title: Finding the rating of words using python
body: <p>This is my program and it display the value if i give the complete name like if i type <code>eng</code> than it will show me only <code>eng</code> with value</p>
  
  <pre><code>import re
  sent = "eng"
  #sent=raw_input("Enter word")
  #regex = re.compile('(^|\W)sent(?=(\W|$))')
  for line in open("sir_try.txt").readlines():
      if sent == line.split()[0].strip():
          k = line.rsplit(',',1)[0].strip()
          print k
  gene name        utr length
  ensbta                  24
  ensg1                   12
  ensg24                  30
  ensg37                  65
  enscat                  22
  ensm                    30
  </code></pre>
  
  <p>Actually what i want to do is that i want to search the <code>highest value from the text file</code> not through words , and it delete all the values from the text file of the same word having less value than the maximum like from the above text it should delete <code>12 , 30</code> for ensg , and than <code>it should find the minimum value from the utr values and display it with name</code>
  What you people answering me is , i already done it , and i mention it before my showing my program</p>