Answers for "python recursive function wthin function"

4

recursion in python

def rec(num):
    if num <= 1:
        return 1
    else:
        return num + rec(num - 1)

print(rec(50))
Posted by: Guest on March-03-2021

Code answers related to "python recursive function wthin function"

Python Answers by Framework

Browse Popular Code Answers by Language