Python dropping white space
<p>I am using a csv file that I am iterating over each line and make each column a different title.</p>

<pre><code>for i in csvreader:
    1 = i[0]
    2 = i[1]
</code></pre>

<p>etc.</p>

<p>however the 2 column has spaces after the text in the column 'text    '. I need to removed the spaces after the text. I need 'text', with no spaces at the end.</p>

<p>I know I could just remove it from the CSV in excel, but I need to do this with Python I am not wanting to open CSV file and work with it.</p>

<p>I have tried to <code>replace</code> and <code>strip</code>, but I can't get this to work. Any suggestions?</p>
