title: Getting rid of \n when using .readlines()
body: <p>I have a .txt file with values in it.</p>
  <p>The values are listed like so:</p>
  <pre class="lang-none prettyprint-override"><code>Value1
  Value2
  Value3
  Value4
  </code></pre>
  <p>My goal is to put the values in a list. When I do so, the list looks like this:</p>
  <p><code>['Value1\n', 'Value2\n', ...]</code></p>
  <p>The <code>\n</code> is not needed.</p>
  <p>Here is my code:</p>
  <pre><code>t = open('filename.txt')
  contents = t.readlines()
  </code></pre>