Create a program in Python to compute and print the factorial of a given number.
Number: 5
def factorial(n):
    if n == 0:
        return 1
    else:
        return n * factorial(n-1)

num = 5

print("The factorial of", num, "is", factorial(num))