Solve problem "Adding factorials" online - Learn Python 3 - Snakify

Problem «Adding factorials» (Medium)


Statement

Given an integer \(n\), print the sum \(1!+2!+3!+...+n!\).

This problem has a solution with only one loop, so try to discover it. And don't use the math library :)


In all the problems input the data using input() and print the result using print().



Saved solutions

Tests

Input Correct answer Result
1
1
2
3
3
9
4
33
5
153
6
873
7
5913
8
46233
9
409113
10
4037913