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 ])
Seems like cookies are disabled on this browser, please enable them to open this website
List Comprehensions
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 :)