• tuple index out of range, count_neighbours

I would like to give some feedback about ...

IndexError: tuple index out of range, countneighbours, 9 сountneighbours( ((1,0,1,0,1), (0,1,0,1,0), (1,0,1,0,1), (0,1,0,1,0), (1,0,1,0,1), (0,1,0,1,0),), 5, 4)

but my example code (with copypaste this test) works well Looks like tuple is not square

From: http://www.checkio.org/mission/count-neighbours/solve/


Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.155 Safari/537.36