title: Flattening a very nested loop
body: <p>If I have a set of loops like this:</p>
  
  <pre><code>x = [[...],[...],[...]]    
  
  for a in x[0]:
    for b in x[1]:
      for c in x[2]:
        # Do something with a,b,c
  </code></pre>
  
  <p>Is there a simple way to simplify it, especially if there are more levels to it? It seems like something quite easy to do, but I just can't figure it out.</p>