prep-work/1- python/11-factorial/factorial_iterative.py
2015-07-22 16:44:07 -04:00

14 lines
198 B
Python

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"