by Kilimanjaro · 16y ago · 0 comments
def fact(n): return 1 if n<=1 else n*fact(n-1)
def fact(n): return n*fact(n-1) if n>1 else 1