human
How to use variables in SQL statement in Python?
assistant
Here is some code to insert variables `(var1, var2, var3)` into sql statement 'INSERT INTO table VALUES (?, ?, ?)'

cursor.execute('INSERT INTO table VALUES (?, ?, ?)', (var1, var2, var3))

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.