title: Reading a txt file into a list without newlines in python
body: <p>I have a txt file that looks like this:</p>
  <pre><code>FSDAF  
  HKLWF  
  AAKEP  
  </code></pre>
  <p>How can I read that into a list so it looks like this:
  lst = ['FSDAF', 'HKLWF', 'AAKEP']<br />
  I did something like this but I cant get rid of the newlines:</p>
  <pre><code>file = open('dane.txt', 'r')
  lst = file.readlines()
  </code></pre>
  <p>And it displays the newlines like this:</p>
  <pre><code>['FSDAF\n', 'HKLWF\n', 'AAKEP\n']
  </code></pre>