title: Python - Passing list of fields as column to SQL query
body: <p>I am trying to pass a list of columns into a SQL query in Python. This just returns back the list but not the actual columns as shown:</p>
  <pre><code>cols = [&quot;col_a&quot;,&quot;col_b&quot;,&quot;col_c&quot;]
  
  
  query = f&quot;&quot;&quot;select '{cols}' from table&quot;&quot;&quot;
  
  
  Current Output : f&quot;&quot;&quot;select '[&quot;col_a&quot;,&quot;col_b&quot;,&quot;col_c&quot;]' from table&quot;&quot;&quot;
  
  Expected output: f&quot;&quot;&quot;select col_a, col_b, col_c from table&quot;&quot;&quot;
  </code></pre>