title: How can I use a list of variables to create sql query string?
body: <p>I tried using the code below, but i still have the ' ' around each element in the string.</p>
  
  <pre><code>l = ['a','b','c']
  query = "SELECT " + str(l).strip('[,]') + " FROM table"
  </code></pre>
  
  <p>returns</p>
  
  <pre><code>"SELECT 'a', 'b', 'c' FROM table"
  </code></pre>
  
  <p>How can I fix this?</p>