Basic factorial

Python -- Posted on Aug. 23, 2017

Basic factorial python

              
                def factorial(n):
    '''
    Fuctorial function
    '''
    if n == 1:
        return n
    else:
        return n * factorial(n-1)
                  
   
            

Related Posts