14 lines
198 B
Python
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"
|