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

Adding factorials


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 :)

Advertising by Google, may be based on your interests

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