Skip to content

Commit 85b4149

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 66c50b3 commit 85b4149

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

maths/armstrong_numbers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import math
2+
23
"""
34
An Armstrong number is equal to the sum of its own digits each raised to the
45
power of the number of digits.
@@ -31,7 +32,7 @@ def armstrong_number(n: int) -> bool:
3132
temp = n
3233
# Calculation of digits of the number
3334
number_of_digits = math.floor(math.log10(temp)) + 1
34-
35+
3536
# Dividing number into separate digits and find Armstrong number
3637
temp = n
3738
while temp > 0:

0 commit comments

Comments
 (0)