title: How do I insert this list into a postgresql array
body: <pre><code>`def copy_Stones(ipt, lhailstones):
      iptstr = str(ipt)
      iptuple = (iptstr)    
      cur.execute(&quot;INSERT INTO Hailstones(ID) VALUES({})&quot;.format(ipt))
  #the above query works in isolation
  
      res = str(lhailstones)[1:-1]
      cur.execute(&quot;INSERT INTO Hailstones(Stones) VALUES({})&quot;.format(res))
  
  #for this query I am getting the following error: psycopg2.errors.SyntaxError: INSERT 
  has more expressions than target columns LINE 1: INSERT INTO Hailstones(Stones) VALUES(4, 2, 1)`
  </code></pre>
  <p>I don't understand how to insert this list into this array. If it's an array why can't it accept the list?</p>