Add quotes to every list elements
<p>I'm very new to python. I need a simple and clear script to add quotes to every list elements. Let me explain more. Here is the my code.</p>

<pre><code>parameters = ['a', 'b', 'c']
query = "SELECT * FROM foo WHERE bar IN (%s)" % (', '.join(parameters))
</code></pre>

<p>I want to use this to query. But result is invalid query. Here is the result.</p>

<pre><code>SELECT * FROM foo WHERE bar IN (a, b, c, d)
</code></pre>

<p>I want to like this:</p>

<pre><code>SELECT * FROM foo WHERE bar IN ('a', 'b', 'c', 'd')
</code></pre>

<p>How to add quotes while joining elements.</p>
