title: How to remove '\n' from end of strings inside a list?
body: <p>I have 2 strings here:</p>
  
  <pre><code>line= ['ABDFDSFGSGA', '32\n']
  line= ['NBMVA\n']
  </code></pre>
  
  <p>How do I remove <code>\n</code> from the end of these strings. I've tried <code>rstrip()</code> and <code>strip()</code> but I am still unable to remove the <code>\n</code> from the string. Can I have help removing it?</p>