<human>:  How to use variables in SQL statement in Python?
<bot>: Here is some code to execute a sql statement using variables `var1`, `var2` and `var3`

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

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