title: remove line break from each element in python
body: <p>I open a text file, now each element in the text file is separated by a line break. when I use <code>readlines()</code> It keeps this line break in the list, this is after each element so as it looks like this <code>[zebra\n, ant\n,]</code> i was wondering whether there is a easy function or piece of coding that I could use to just strip all the elements of this line break!</p>
  
  <p>this is the code i have written so far</p>
  
  <pre><code>filelist=file.readlines()
  file.close()
  return filelist
  </code></pre>