title: Why does this give output as 1 2 6 24 and not 24 6 2 1
body: <pre><code>def recurr(k):  
         if (k&gt;0):
             result =k*recurr(k-1)
             print(result)
         else:
             result=1
         return result 
  recurr(4)
  </code></pre>
  
  <p>Output :
  1
  2
  6
  24</p>