title: Search for word in text file in Python
body: <p>I have this text file:</p>
  
  <pre><code>MemTotal,5,2016-07-30 12:02:33,781
  model name,3,2016-07-30 13:37:59,074
  model,3,2016-07-30 15:39:59,075
  </code></pre>
  
  <p>I need to find the line with the model.</p>
  
  <p>My code:</p>
  
  <pre><code>term = "model"
  file = open('file.txt')
  for line in file:
      line.strip().split('/n')
      if term in line:
          print line
  file.close()
  </code></pre>
  
  <p>This is the output:</p>
  
  <pre><code>model name,3,2016-07-30 13:37:59,074
  model,3,2016-07-30 15:39:59,075
  </code></pre>
  
  <p>I need only this line as output: </p>
  
  <pre><code> model,3,2016-07-30 15:39:59,075
  </code></pre>
  
  <p>How can I do this?</p>