title: Python join - quoting values
body: <p>I am using the Python join function to create a string e.g.</p>
  
  <pre><code>a = [a, b, c, d]
  b = ",".join(a)
  print b
  
  b = a,b,c,d
  </code></pre>
  
  <p>but I want </p>
  
  <pre><code>b = 'a','b','c','d'
  </code></pre>
  
  <p>is there a way to do this just using the join function (or a shorter way) rather than doing</p>
  
  <pre><code>b = ""
  for x in a:
    b += "'%s'," % x
  b = b[:-1]
  </code></pre>