title: Why is this coding causing a timeout error? (cuboid solution)
body: <p>I am attempting to create a code that determines the number of potential, unique cubes (cuboids) within a larger cube. The code takes length, width, and height (x, y, z) and and should iterate through each possible combination of those numbers, returning the final sum.</p>
  <p>EX. (2, 2, 2) = 27</p>
  <p>Every attempt to run this code returns the sum of every iteration and times out, instead of returning only the final sum.</p>
  <pre><code>def subcuboids(x,y,z):
  
      cuboid = []
  
      cuboid = sum([a * b * c for a in range(x, 0, -1) for b in range(y, 0, -1) for c in range (z, 0 , -1)])
      print (cuboid)               
  </code></pre>