Stuck in IndexError: list index out of range
I'm quite new in Python. I've been trying to solve this IndexError but couldn't get the answer yet. Need you guys advice or help. I want to extract the sentence matched with the keyword strSearch from 5gm-007 file(just text file). The error occured in "str5gram = lines[a]". here is the code....
__________________
Python
Domain Name Forum
|