“`python
def factorial(n):
if n == 0:
return 1
else:
return n * factorial(n-1)
number = 5
print(f”The factorial of {number} is {factorial(number)}”)
“`
In this code, the `factorial` function uses recursion to calculate the factorial of a number. The factorial of a number is the product of all positive integers less than or equal to that number. For example, the factorial of 5 (denoted as 5!) is 1*2*3*4*5 = 120.