title: python recursive function that prints from 0 to n?
body: <p>I am trying to write a recursive function that prints from <code>0</code> to <code>n</code>, but I have no idea how to do it. I accidentally made one that prints from <code>n</code> to <code>0</code> though:</p>
  
  <pre><code>def countdown(n):
      print(n)
      if n == 0:
          return 0
      return countdown(n - 1)
  </code></pre>
  
  <p>I don't know if that helps or not, maybe I can change something in the code to make it go from <code>0</code> to <code>n</code>?</p>