title: Nested sums in Python
body: <p>I have seen <a href="https://stackoverflow.com/a/14917111/4089351">this post</a>, but I'm not sure it applies.</p>
  
  <p>I am looking for an easy - minimal calls for packages or special functions - to code in Python what in Maple would be:</p>
  
  <pre><code>x:=0:
  for m1 from 0 to 9 do
    for m2 from 0 to m1-1 do
      for m3 from 0 to m2-1 do
        for m4 from 0 to m3-1 do
          for m5 from 0 to m4-1 do
            x:=x+1
          od
        od
      od
    od
  od:
  x;
  </code></pre>