def fact(n): print(n) if n<=1: return 1 vastus=n*fact(n-1) print(n, vastus) return vastus print(fact(5))