by _glass · 4y ago · 0 comments
My interpreter can't do it, and I don't really understand how this is supposed to work :)
Thanks!
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?