These are chat archives for Codewars/codewars.com/kata-solving-help

16th
Mar 2017
Davo36
@Davo36
Mar 16 2017 07:29
Hi I'm getting different results on my local machine than I am on Codewars, for a particular kata: https://www.codewars.com/kata/6-by-6-skyscrapers/train/python. I'm using Python 3.5.2, and Codewars is using 3.4.3. The first error I'm getting is an IndexError: List index out of range. This doesn't happen on my machine. And secondly, one of the examples solves on my machine but fails on Codewars. Tried re-pasting the code into Codewars about 10 times. Any help would be much appreciated.
Annika
@shinda_yume_twitter
Mar 16 2017 07:34
The link you gave us only opens the training, it doesn't show your code. Just copy paste it here (not sure I could help, just making sure you don't wait longer)
Davo36
@Davo36
Mar 16 2017 08:20
Hi, thanks. My code is like 380 lines long, so can't post it here. But I found the problem actually. A global variable was being initialised to a funny value on Codewars, but not on my machine. I found it by putting in exception catching code in the routine where I was having the index error - and printing out some values.
Annika
@shinda_yume_twitter
Mar 16 2017 08:25
Happy to hear you solved it after all :)
Or, found the problem at least