How do i remove the last character of the last string from a list of strings? : <p>If I have something like this:</p>

<pre><code>a=['100','200','501','124','1234\n']
</code></pre>

<p>How can I remove that <code>'\n'</code> ?</p>
