Python Forum
Clearification on my next 5 lines for def a bot and training it - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Clearification on my next 5 lines for def a bot and training it (/thread-13072.html)



Clearification on my next 5 lines for def a bot and training it - jgaza - Sep-26-2018

5 bot = Chatbot('bot')
6 bot.set_trainer(ListTrainer)
7 for files in (file pathway help)
8 data = open( file pathway + files, 'r').readlines()
9 bot.train(data)

I would appreciate help on clearing up these lines of code, finding pathway to files and overall correctness of code