It works on Python38 with cube = [(x, y, z) for x in range(-1, 1) for y in range(-1, 1) for z in range(-1, 1)] I had the same question. Maybe it's a Python2 construct?
It works on Python38 with cube = [(x, y, z) for x in range(-1, 1) for y in range(-1, 1) for z in range(-1, 1)] I had the same question. Maybe it's a Python2 construct?