Python/Project Euler/Problem 20/sol2.py

5 lines
124 B
Python
Raw Normal View History

2018-03-03 05:00:31 +00:00
from math import factorial
def main():
print(sum([int(x) for x in str(factorial(100))]))
if __name__ == '__main__':
main()