An Armstrong number equals the sum of its digits each raised to the number of digits (153 = 1³+5³+3³). Write is_armstrong(n) using a while loop to extract digits.
is_armstrong(153) → True
is_armstrong(123) → False
Submit runs 5 tests, including hidden edge cases.
Run your code to see the output here.