c.execute("INSERT INTO numbers VALUES(?)", (random.randint(0,100),))
If I change the above code, to:
c.execute("INSERT INTO numbers VALUES(?)", (random.randint(0,100)))
I will get ValueError: parameters are of unsupported type
.
I don't understand why I need the put a ,
? What's the difference?
Thanks!