title: file.readlines leaving blank lines
body: <p>I have read that <code>file.readlines</code> reads the whole file line by line and stores it in a list.
  If I have a file like so -</p>
  
  <pre><code>Sentence 1
  Sentence 2
  Sentence 3
  </code></pre>
  
  <p>and I use <code>readlines</code> to print each sentence like so -</p>
  
  <pre><code>file = open("test.txt") 
  for i in file.readlines():
      print i
  </code></pre>
  
  <p>The output is </p>
  
  <pre><code>Sentence 1
  
  Sentence 2
  
  Sentence 3
  </code></pre>
  
  <p>My question is why do I get the extra line between each sentence and how can I get rid of it?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I found that using <code>i.strip</code> also removes the extra lines. Why does this happen? As far as I know, <code>split</code> removes the white spaces at the end and beginning of a string.</p>