mymath module



examples/code-reuse/mymath.py
def fact(x):
    x_fact = 1
    for i in range(1, x+1):
        x_fact *= i
    return x_fact