View Single Post
  #1  
Old 08-21-2010, 03:53 AM
Python Python is offline
Senior Member
 
Join Date: Jun 2009
Posts: 4,684
Default 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
Reply With Quote