Recursion is giving me a hardddd!!! time in General Posted August 25, 2020 This special code to be exact 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(3)
Recursion is giving me a hardddd!!! time
in General
Posted
This special code to be exact
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(3)