• Nested for loops

 

I would like to give some feedback about ...

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

I wrote essentially-

for a in [-1,0,1]: for b in [-1,0,1]: print 'coordinate',a,b

and the result was -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 1 1 1 1 1 1 This isn't how this is supposed to work. Why does this happen in your IDE?

2