Factorial digit sum
First read the problem description.
from math import factorial
= 0
s = factorial(100)
n while n > 0:
+= n % 10
s //= 10 n
Source code of the solution(s):
from math import factorial
= 0
s = factorial(100)
n while n > 0:
+= n % 10
s //= 10 n