Write a Python program to calculate the factorial of a number.
number = 6
def factorial(number): 
 if number == 0: 
 return 1
 else: 
 return number * factorial(number-1) 
  
number = 6
print(factorial(number)) 
# Output: 720