You are viewing a single comment's thread. Return to all comments →
You don't even need to have the cuboid list to be honest :)
print ([[a,b,c] for a in range(0,x+1) for b in range(0,y+1) for c in range(0,z+1) if a + b + c != n ])
ha!, I realized that a day later. Thanks for clearing it up though gkeswani92
bro can you please explain the code?