def factorial(num):
    if num == 0 or num == 1:
        return 1
    else:
        return num * factorial(num-1)


n = int(input("enter a number:"))
out = factorial(n)
print("factorial is {}".format(out))

71fe72b95ed78985a5dbd480e41c17e6ad8f03b8
<mask token>

def factorial(num):
    if num == 0 or num == 1:
        return 1
    else:
        return num * factorial(num - 1)


<mask token>

def factorial(num):
    if num == 0 or num == 1:
        return 1
    else:
        return num * factorial(num - 1)


<mask token>
print('factorial is {}'.format(out))

def factorial(num):
    if num == 0 or num == 1:
        return 1
    else:
        return num * factorial(num - 1)


n = int(input('enter a number:'))
out = factorial(n)
print('factorial is {}'.format(out))

def factorial(num):
    if num == 0 or num == 1:
        return 1
    else:
        return num * factorial(num-1)


n = int(input("enter a number:"))
out = factorial(n)
print("factorial is {}".format(out))
