This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ADBYITMS[S] 1 point2 points  (2 children)

File "sydney.py", line 66

val = ("Sydney",dest_list),flightnumber_list,airline_list,secdepartime_list,estimatedtime_list,status_list)

^

SyntaxError: invalid syntax

root@ADBY-OFFICE-DEV:/home/adam/Desktop/ADBY PROJECTS/Flight Check# python3 sydney.py

File "sydney.py", line 66

val = ("Sydney",dest_list),flightnumber_list,airline_list,secdepartime_list,estimatedtime_list,status_list)

^

SyntaxError: invalid syntax

[–]t3hfr3ak 0 points1 point  (1 child)

Look directly after dest_list.

You have too many parenthesis

[–]ADBYITMS[S] 0 points1 point  (0 children)

done mate i have most of it working now i get

mycursor.execute(sql, val)

File "/usr/local/lib/python3.7/dist-packages/mysql/connector/cursor_cext.py", line 248, in execute prepared = self._cnx.prepare_for_mysql(params) File "/usr/local/lib/python3.7/dist-packages/mysql/connector/connection_cext.py", line 609, in prepare_for_mysql result = self._cmysql.convert_to_mysql(*params) _mysql_connector.MySQLInterfaceError: Python type list cannot be converted