;&gt;&gt; delimiter = '-'
&gt;&gt;&gt; s.split(delimiter)
['spam', 'spam', 'spam']
</font></pre><font color="black"><tt>join</tt> is the inverse of <tt>split</tt>. It
takes a list of strings and
concatenates the elements. <tt>join</tt> is a string method,
so you have to invoke it on the delimiter and pass the
list as a parameter:</font><br />
<br />
<a name="@default536"></a>
<a name="@default537"></a>
<a name="@default538"></a>
<pre><font size="4" color="blue">
&gt;&gt;&gt; t = ['pining', 'for', 'the', 'fj