by helpyhelperx · 4y ago · 0 comments
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?