DOWNLOAD
- # returns the n factorial, or -1 if it does not exist
- def factorial(n):
- if n > 1: return n * factorial(n - 1)
- elif n >= 0: return 1
- else: return -1
Created: February 12, 2014
Completed in full by: Michael Yaworski