I'd like to create a variable with the first value passed as a parameter in a function, but every time a recursive call is made the variable receives the value of the new passed parameter. For example:
def fatorial(n)
print(n)
if n <= 1:
return 1
else:
return n * fatorial(n - 1)
In the case above I would like to print only the value passed as parameter the first time. Can I store and print only the first last value? If so, how could I implement this?