79552609

Date: 2025-04-03 10:12:29
Score: 1
Natty:
Report link

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))
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: miad dehghani