def factorial(x):
    """
    Input:
    x: some integer number
    
    Output:
    factorial of input number.
    
    """

    fact = 1
    for n in range(1, x+1):
        fact *= n
    
    return fact