title: in python, how do i iterate a nested dict with a dynamic number of nests?
body: <p>OK by dynamic I mean unknown at runtime.</p>
  
  <p>here is a dict:</p>
  
  <pre><code>aDict[1]=[1,2,3]
  aDict[2]=[7,8,9,10]
  aDict[n]=[x,y]
  </code></pre>
  
  <p>I don't know how many n will be but I want to loop as follows:</p>
  
  <pre><code>for l1 in aDict[1]:
    for l2 in aDict[2]:
      for ln in aDict[n]:
        # do stuff with l1, l2, ln combination.
  </code></pre>
  
  <p>Any suggestions on how to do this? I am relatively new to python so please be gentle (although I do program in php). BTW I am using python 3.1</p>