Python invalid syntax error on con.commit

Solution 1:

Seems like there is a closing paranthesis missing on line-14.

cur.execute('insert into posts (name, content) values(?, ?)', (name, content) **)**