One thing I would like to add to PaulS' answer is that if any of your variables are strings, you should put the %s associated with that variable inside quotes.
var1 = str()
var2 = int()
var3 = float()
print("INSERT INTO table VALUES ('%s', %s, %s)" % (var1, var2, var3))