n = 15factorial = 1sum = 0
for i in range(1, n+1):factorial *= isum += factorial
print("Сумма выражения 1! + 2! + 3! + ... + 15! =", sum)
n = 15
factorial = 1
sum = 0
for i in range(1, n+1):
factorial *= i
sum += factorial
print("Сумма выражения 1! + 2! + 3! + ... + 15! =", sum)