Skip to content

Commit 1c815a2

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 860a036 commit 1c815a2

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

maths/armstrong_numbers.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def is_armstrong(number: int) -> bool:
2222
"""
2323
if not isinstance(number, int) or number < 0:
2424
raise ValueError("is_armstrong() only accepts non-negative integers")
25-
25+
2626
digits = str(number)
2727
power = len(digits)
2828
return sum(int(d) ** power for d in digits) == number
@@ -40,4 +40,5 @@ def get_armstrongs_up_to(limit: int) -> list[int]:
4040

4141
if __name__ == "__main__":
4242
import doctest
43-
doctest.testmod()
43+
44+
doctest.testmod()

0 commit comments

Comments
 (0)