Replacement of space to + in python
<p>I have written some code in python and I got the problem that when I have for example a sentence "This is my very first python program", after using the <code>split</code> function I get a result like this:</p>

<pre><code>['this', 'is', 'my', 'very', 'first', 'python', 'program']
['this', 'is', 'my', 'very', 'first', 'python program']
['this', 'is', 'my', 'very', 'first python program']
['this', 'is', 'my', 'very first python program']
['this', 'is', 'my very first python program']
['this', 'is my very first python program']
['this is my very first python program']
</code></pre>

<p>Now I want to pass each word separated with + signs into a url.</p>

<p>I would like to use a for each loop but my problem is that it should automatically replace it as I stated above.</p>

<p>For example, the result of <code>"python program"</code> should be <code>"python+program"</code>.</p>

<p>So can anyone tell me how to solve this problem in python?</p>
