def f(n):
    if n == 1 or n == 0:
        return 1
    else:
        return f(n - 1) * n


i = 1
s = 0
while i <= 20:
    s = s + f(i)
    i = i + 1
print(s)

4816b76edd3ce40726668db0456c0b97fe9763e6
<mask token>

def f(n):
    if n == 1 or n == 0:
        return 1
    else:
        return f(n - 1) * n


<mask token>

def f(n):
    if n == 1 or n == 0:
        return 1
    else:
        return f(n - 1) * n


<mask token>
while i <= 20:
    s = s + f(i)
    i = i + 1
print(s)

def f(n):
    if n == 1 or n == 0:
        return 1
    else:
        return f(n - 1) * n


i = 1
s = 0
while i <= 20:
    s = s + f(i)
    i = i + 1
print(s)
