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/
HTTP_USER_AGENT:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.155 Safari/537.36
Created at: Aug. 21, 2015, 3:34 p.m.; Updated at: Aug. 21, 2015, 3:34 p.m.