Function Recursion

PHOTO EMBED

Fri May 27 2022 08:40:20 GMT+0000 (UTC)

Saved by @redpsych #undefined

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)
​
content_copyCOPY

https://www.w3schools.com/python/trypython.asp?filename