We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f86a6bd commit 342b271Copy full SHA for 342b271
maths/is_armstrong_number.py
@@ -4,14 +4,10 @@ def is_armstrong_number(number: int) -> bool:
4
An Armstrong number is a number that is equal to the sum
5
of its own digits each raised to the power of the number of digits.
6
7
+ Wikipedia: https://en.wikipedia.org/wiki/Narcissistic_number
8
+
9
>>> is_armstrong_number(153)
10
True
- >>> is_armstrong_number(370)
- True
11
- >>> is_armstrong_number(371)
12
13
- >>> is_armstrong_number(9474)
14
15
>>> is_armstrong_number(123)
16
False
17
"""
0 commit comments