title: Is a recursive code overrunning the return value of a this function?
body: <p>I am puzzled by this python code:</p>
  
  <pre><code>def Counting(x):
      if x &lt;= 0:
          return x
      else:
          print(x)
          x = x-1
          Counting(x)
      print("count up",x)
  print(Counting(10))
  </code></pre>
  
  <h3>#</h3>
  
  <pre><code>The out put is:
  10
  9
  8
  7
  6
  5
  4
  3
  2
  1
  count up 0
  count up 1
  count up 2
  count up 3
  count up 4
  count up 5
  count up 6
  count up 7
  count up 8
  count up 9
  None
  </code></pre>
  
  <p>What I don't understand is why the return value is None? Shouldn't I get the value of x? Is it possible to have a return value of my choice? </p>
  
  <p>Thank you</p>