From b6b7784b1bc9905be33b6826929b2e70fbd68839 Mon Sep 17 00:00:00 2001 From: shivg7706 Date: Sat, 3 Mar 2018 10:30:31 +0530 Subject: [PATCH] another sol for problem_20 --- Project Euler/Problem 20/sol2.py | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 Project Euler/Problem 20/sol2.py diff --git a/Project Euler/Problem 20/sol2.py b/Project Euler/Problem 20/sol2.py new file mode 100644 index 000000000..bca9af9cb --- /dev/null +++ b/Project Euler/Problem 20/sol2.py @@ -0,0 +1,5 @@ +from math import factorial +def main(): + print(sum([int(x) for x in str(factorial(100))])) +if __name__ == '__main__': + main() \ No newline at end of file