Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

recursion python examples

# Recursive function factorial_recursion()

def factorial_recursion(n):  
   if n == 1:  
       return n  
   else:  
       return n*factorial_recursion(n-1)
Source by www.datacamp.com #
 
PREVIOUS NEXT
Tagged: #recursion #python #examples
ADD COMMENT
Topic
Name
8+1 =