Narcissistic Number
A number with digits is narcissistic (an Armstrong number) when it equals the sum of each digit raised to the power . For example .
Return True if n is narcissistic.
Constraints
Examples
EXAMPLE WALKTHROUGHclassic example
A guided view of the published example, not a trace of your code.
INPUT
[153]TASKnarcissistic_number()
EXPECTED OUTPUT
trueStart with the input values shown in this example.
Example 1 of 3
Input: n = 153
Output: true
Explanation: classic example
Input: n = 123
Output: false
Explanation: not narcissistic
Input: n = 0
Output: true
Explanation: zero
Hint 1
Convert to a string to get the digits and their count.