Hello.
When we want to insert a vlue into a table in sqlite, we use this line, right?
cursor.execute('INSERT INTO colors Values ("red", "blue")')
As we can see above, we want to insert 2 words and we type them as when we are typing whole the codes.
But i want to get 2 words from input and insert them into the table in sqlite.
I'm using Entry box in Tkinter window and i want something like this:
ent = Entry()
ent.grid()
################
cursor.execute('INSERT INTO colors VALUES (ent.get())')
But it doesn't work and give me a syntaxt error.
What can i do?