Skip to content

Commit 136b05a

Browse files
Kush1101cclauss
andauthored
Update project_euler/problem_34/sol1.py
Co-authored-by: Christian Clauss <[email protected]>
1 parent 42c1887 commit 136b05a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

project_euler/problem_34/sol1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def sum_of_digit_factorial(n: int) -> int:
1616
1
1717
"""
1818
digits = list(map(int, str(n)))
19-
summ = sum(factorial(digit) for digit in digits)
19+
return sum(factorial(digit) for digit in digits)
2020
return summ
2121

2222

0 commit comments

Comments
 (0)