Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def problem20():
- import math
- toSum = str(math.factorial(100))
- total = 0
- for x in toSum:
- total += int(x)
- return total
- print(problem20())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement