diff --git a/src/fancymath/math.py b/src/fancymath/math.py index 80c0b6a..30f3ea8 100644 --- a/src/fancymath/math.py +++ b/src/fancymath/math.py @@ -1,2 +1,15 @@ +""" +This is some really Fancy Math! +""" + def add(x1, x2): + "Apply the + operator to two Python objects" return x1 + x2 + + +def fact(n: int) -> int: + "Return the factorial of n." + if n == 1: + return 1 + else: + return n * fact(n - 1) \ No newline at end of file