Skip to content

Commit b6b7784

Browse files
committed
another sol for problem_20
1 parent 744803a commit b6b7784

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Project Euler/Problem 20/sol2.py

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from math import factorial
2+
def main():
3+
print(sum([int(x) for x in str(factorial(100))]))
4+
if __name__ == '__main__':
5+
main()

0 commit comments

Comments
 (0)