Create a Python program which computes the factorial of a given integer number.
num = 5
def factorial(num): 
    if num == 0: 
        return 1
    else: 
        return num * factorial(num-1) 

x = 5
print(factorial(x)) 
# 120