1 2 3 4 5 6 7 8 9
def fact(n, count = 0): count+=1 if n == 0 or n == 1: return 1 else: print count return n*fact(n-1, count) fact(5)
1 2 3 4