Skip to content

Commit 7dcbca5

Browse files
authored
Merge pull request TheAlgorithms#257 from shivg7706/master
another sol for problem_20
2 parents bae5762 + b6b7784 commit 7dcbca5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Project Euler/Problem 20/sol2.py

Lines changed: 5 additions & 0 deletions
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)