[Solved] chatbot error EOL while scanning string literal


\ is the escape character in Python. If you end your string with \, it will escape the close quote, so the string is no longer terminated properly.

You should use a raw string by prefixing the open quote with r:

os.listdir(r'C:/Users/Tatheer Hussain/Desktop//ChatBot/chatterbot-corpus-master/chatterbot_corpus/data///english/')

1

solved chatbot error EOL while scanning string literal