files
This commit is contained in:
13
python/11-factorial/factorial_iterative.py
Normal file
13
python/11-factorial/factorial_iterative.py
Normal file
@ -0,0 +1,13 @@
|
||||
import sys
|
||||
|
||||
def factorial(num):
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#write assert statements below
|
||||
|
||||
assert(factorial(5) == 120), "5! should return 120"
|
||||
assert(factorial(20) == 2432902008176640000), "Well that escalated quickly"
|
Reference in New Issue
Block a user