Skip to content

Commit 53056f7

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 4b720f4 commit 53056f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

maths/is_armstrong.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ def is_armstrong(n: int) -> bool:
1111

1212
digits = list(map(int, str(n)))
1313
num_digits = len(digits)
14-
return n == sum(d ** num_digits for d in digits)
14+
return n == sum(d**num_digits for d in digits)
1515

1616

1717
if __name__ == "__main__":
1818
print(is_armstrong(153)) # True
1919
print(is_armstrong(370)) # True
20-
print(is_armstrong(10)) # False
20+
print(is_armstrong(10)) # False

0 commit comments

Comments
 (0)