Better HN
topnewbestaskshowjobs
Log inSign up

helpyhelperx

1 karma · joined Jun 16, 2022 (4y ago) · 1 submissions

Submissions

comment 4y ago · link · parent

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?