• input sanitation and clear instructions


I would like to give some feedback about the Moore's Neighbourhood task. My code failed because I didn't sanitize the input. Your grader provided a five by five grid, indexed from 0-4 and a row co-ordinate of 5 that triggered an IndexError exception. If the code is supposed to handle such errors the task should state this and also state how such errors should be handled. ie, throw an exception, print message to user etc.

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


Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2486.0 Safari/537.36 Edge/13.10586