From 5b17cebbfbff3279095f27c6bab13e5acd36535d Mon Sep 17 00:00:00 2001 From: MaximSmolskiy Date: Fri, 10 Sep 2021 23:39:39 +0300 Subject: [PATCH 1/2] Fix comment --- project_euler/problem_034/sol1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project_euler/problem_034/sol1.py b/project_euler/problem_034/sol1.py index 78b318b76d06..5535730fa00a 100644 --- a/project_euler/problem_034/sol1.py +++ b/project_euler/problem_034/sol1.py @@ -11,7 +11,7 @@ def sum_of_digit_factorial(n: int) -> int: """ - Returns the sum of the digits in n + Returns the sum of the factorial of digits in n >>> sum_of_digit_factorial(15) 121 >>> sum_of_digit_factorial(0) From 5a345f11c21aff229358fb92b128c8fda4bb27c1 Mon Sep 17 00:00:00 2001 From: MaximSmolskiy Date: Fri, 10 Sep 2021 23:41:05 +0300 Subject: [PATCH 2/2] Fix output --- project_euler/problem_034/sol1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project_euler/problem_034/sol1.py b/project_euler/problem_034/sol1.py index 5535730fa00a..11c84ab96ac6 100644 --- a/project_euler/problem_034/sol1.py +++ b/project_euler/problem_034/sol1.py @@ -33,4 +33,4 @@ def solution() -> int: if __name__ == "__main__": - print(f"{solution()} = ") + print(f"{solution() = }")