"Tommy Kaas" <tommy.k...@kaasogmulvad.dk> wrote

I get a invalid syntax error when I try to run this script - and it's
con.commit() which is highlighted when I get the error.

Aren't you one closing parenthesis short?


       cur.execute(sqlinsert,
                                  (cols[0],
                                   cols[1],
                                   int(cols[2]),
                                   int(cols[3]),
                                   int(cols[4]),
                                   int(cols[5]),
                                   int(cols[6]),
                                   int(cols[7])
                                  )

HTH,


--
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/


_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to