def factorial(num):
    if num == 1:
        return 1

    return factorial(num - 1) * num


print(factorial(5))
def factorial(num):
    if num == 1:
        return 1

    return factorial(num - 1) * num


print(factorial(5))