コード例 #1
0
def main():
    n = 4
    print "The factorial of %d is %d" % (n, mymath.fact(n))
コード例 #2
0
ファイル: tests.py プロジェクト: oliverpierson/git_practice
from mymath import gcd, fact

assert(gcd(18, 12) == 6)
assert(fact(6) == 6*fact(5))