dimanche 29 novembre 2015

Unable to run a chat bot program due to unknown invalid syntax

i'm in the process of developing a chat bot using python and SQLlite3 as a DB for the chatbot,when i tired to run the program this error comes up: B = cursor.fetchone() ^ SyntaxError: invalid syntax

and the error is on this line:

Hello= re.search(r'Hi',H)
if Hello:
cursor.execute('SELECT Responce FROM welcome WHERE key_word like ?'(Hello.group(),)
B = cursor.fetchone()

where H is the Uers input and the B is the Bot out put

Aucun commentaire:

Enregistrer un commentaire