title: Insert list into my database using Python
body: <p>I want to insert a list in my database but I can't.</p>
  
  <p>Here is an example of what I need:</p>
  
  <pre><code>variable_1 = "HELLO"
  variable_2 = "ADIOS"
  list = [variable_1,variable_2]
  
  INSERT INTO table VALUES ('%s') % list
  </code></pre>
  
  <p>Can something like this be done? Can I insert a list as a value?
  When I try it, an error says that is because of an error in MySQL syntax</p>