Skip to content
Advertisement

TypeError: Argument 2 must be Tuple or List

I have built a GUI using TKinter. There I want to output the stored data and change them individually. Using the UPDATE command, I want to update the data in the table. I use MariaDB as database.

I’m getting this error:

Here is the complete function:

Any suggestions where I’m doing wrong?

Advertisement

Answer

As the error suggests, the 2nd argument of execute() should be a list or a tuple, while you’re using a dict. Try this:

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement