c.execute("INSERT INTO Expense_Data.db VALUES (?, ?, ?, ?)", (l1.get(), l2.get(), l3.get(), l4.get()))of course you can define the tuple
(l1.get(), l2.get(), l3.get(), l4.get())
and assign it to name before that, on separate line, and use that name insteadpayload = (l1.get(), l2.get(), l3.get(), l4.get()) c.execute("INSERT INTO Expense_Data.db VALUES (?, ?, ?, ?)", payload)
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs