Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/geekcomputers/Python
/ Armstrong_number.py
File
Armstrong_number.py
Armstrong_number.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
def
is_armstrong_number(number: str) -> bool:
2
""
"Check if a number (as a string) is a narcissistic/Armstrong number."
""
3
# Logic: Get the exponent (number of digits)
4
exponent = len(number)
Callers
nothing calls this directly
Calls
1
is_armstrong_number
Function · 0.85
Tested by
no test coverage detected