title: How use line.rstrip() in Python?
body: <p>I am trying to read a file using Python.
  This the my file test.txt:</p>
  
  <pre><code>Hello World
  My name is Will
  What's your name?
  </code></pre>
  
  <p>This is my python code:</p>
  
  <pre><code>fhand = open('test.txt')
  for line in fhand:
      line.rstrip()
      print line
  </code></pre>
  
  <p>No matter whether I use <code>line.rstrip()</code>, The output is always as following:</p>
  
  <pre><code>Hello World
  
  My name is Will
  
  What's your name?
  </code></pre>
  
  <p>How can I output without the empty line using <code>rstrip()</code> like this?</p>
  
  <pre><code>Hello World
  My name is Will
  What's your name?
  </code></pre>