title: I am bit confuse How the recursion function call the output that is mentioned
body: <pre><code>def tri_recursion(k):
      if(k &gt; 0):
          result = k + tri_recursion(k - 1)
          print(result)
      else:
          result = 0
      return result
  
  print(&quot;\n\nRecursion Example Results&quot;)
  tri_recursion(6)
  </code></pre>
  <p>*As inside the code, result = k + tri_recursion(k - 1), In the first iteration it is 6 that is clear But after unable to understand how it's returning 5, Moreover in line no 4  (print(result)) is not calling. I am totally unable to understand why the output will be..</p>
  <p>Recursion Example Results</p>
  <p>1</p>
  <p>3</p>
  <p>6</p>
  <p>10</p>
  <p>15</p>
  <p>21 *</p>