mirror of
https://hub.njuu.cf/TheAlgorithms/Python.git
synced 2023-10-11 13:06:12 +08:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
9dde9ab9bc
commit
12e7074878
@ -29,7 +29,7 @@ def armstrong_number(n: int) -> bool:
|
||||
number_of_digits = 0
|
||||
temp = n
|
||||
# Calculation of digits of the number
|
||||
number_of_digits=len(str(n))
|
||||
number_of_digits = len(str(n))
|
||||
# Dividing number into separate digits and find Armstrong number
|
||||
temp = n
|
||||
while temp > 0:
|
||||
|
Loading…
Reference in New Issue
Block a user