r/programminghelp • • Dec 11 '21

Python SQlite3 error in Python 3.9

I keep getting this error sqlite3.OperationalError right at (' and nothing I changes stops the error:

cursor.execute*("create table linux (Distribution, " + ",".join(column_names)* + ")")

Any clue as to why it keeps crashing with a syntax error?

3 Upvotes

2 comments sorted by

2

u/[deleted] Dec 11 '21

Given that we don't have enough of your code to tell, my first guess would be that you're not following proper SQL syntax to create a table.

1

u/pcprotech Dec 11 '21

Thank you for your reply.

Here is the whole code, it was late and I had been working to solve this for a while in the earlier morning hours.

https://pastebin.com/K5zX0851