Skip to content
Advertisement

Tag: index-error

Python IndexError after 2800 iterations

For some reason that I don’t get, after calling this for the 2800th time (aprox), it gets into the except part. I’m using this to parse a chat log for easier processing later on a Twitch chat bot, so I have to call the parser a lot of times for it to be updated. Can anyone help? Thanks in advance!

word search in python :a search which return the indices the letters

#the following program checks the words in a 2D array and returns a nested list of the indices of the words.the algorithm checks the words in horizontal direction(left &right),vertical direction (upward and downward) and diagonally(left to right in the downward direction) **problem that i’am facing ** #the program returns correct indices for some of the words but for some it

Advertisement