title: how can I subtract each element by one to generate a list contains all zeros i tried to solve it in recursive way
body: <p>if I have a list how can I subtract each element by one in a recursive way ??I implemented this code</p>
  <pre><code>list=[5,4,3,2,1,1]
  level=numbers[0]
  
  def list_arrays(numb):
      if len(numbers)-1 &lt; level:
        print(&quot;nograph&quot;)
     else:
       for i in range(len(numbers)):
         numbers[i] = numbers[i] - 1
           print(numbers)
  </code></pre>
  <p>the output should  be like this</p>
  <pre><code>&gt; [4,3,2,1,0,0]
  &gt; [3,2,1,0,0,0]
  &gt; [2,1,0,0,0,0]
  &gt; [1,0,0,0,0,0]
  </code></pre>
  <p>but its printed only the first array</p>
  <pre><code>&gt; [4,3,2,1,0,0]
  </code></pre>