def factorial( number ): if number <= 1: # base case return 1 else: return number * factorial( number - 1 ) # recursive callfor i in range( 11 ): print "%2d! = %d" % ( i, factorial( i ) )
Name (required)
email (will not be published) (required)
Website