title: Insert into values as parameter - Python
body: <p>I have pretty trivial problem which looks like this: </p>
  
  <pre><code>conn_str = (
      r'DRIVER={Microsoft Access Driver (*.mdb, *.accdb)};'
      r'DBQ=C:/Users/vlcek/Desktop/company.accdb;'
      )
  connection = pyodbc.connect(conn_str)
  cursor = connection.cursor()
  
  first_name='Peter'
  second_name='Jackson'
  
  sql="Insert into people values (25, ?, ?)"
  
  cursor.execute(sql2(first_name, second_name,))
  connection.commit()
  </code></pre>
  
  <p>But I get error message <code>TypeError: 'str' object is not callable</code>.</p>
  
  <p>Could someone please tell what could be the problem? If I don't use parameters and just write <code>'Peter'</code>, <code>'Jackson'</code>, everything works fine. </p>