Joining elements of a list
<p>I have a list of tuples like:</p>

<pre><code>data = [('a1', 'a2'), ('b1', 'b2')]
</code></pre>

<p>And I want to generate a string like this: <code>"('a1', 'a2'), ('b1'. 'b2')"</code></p>

<p>If i do something like: <code>','.join(data)</code>, I get an error: </p>

<pre><code>TypeError: sequence item 0: expected string, tuple found
</code></pre>

<p>If I want to do something in a single line without doing something like:</p>

<pre><code>for elem in data:
  str += ',%s' % str(elem)
</code></pre>

<p>then is there a way?</p>
