i need help understanding this recursion thing i am new to coding and trying to learn python
def tri_recursion(k):
if(k > 0):
result = k + tri_recursion(k - 1)
print(result)
else:
result = 0
return result
print("\n\nRecursion Example Results")
tri_recursion(6)
Recursion Example Results
1
3
6
10
15
21
i understood 1 and 3 i never understand why the answer is 6 by the third row because result = 3 + tri_recursion(3-1) print(result) which is 5 right ?