title: How to Empty Lines?
body: <p>I ran into a problem while trying to put lines from a .txt file into a list. I know you get extra lines when you do this, so I used line.split() to take out the trailing lines.</p>
  
  <p>When I did this, the words I was trying to read became weirdly formatted. This is what it looked like...</p>
  
  <pre><code>['word']
  </code></pre>
  
  <p>Do any of you know how to take out the trailing lines without having this happen?</p>