r/programminghelp • u/pcprotech • 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
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.