Rebuild from Digits

An Armstrong number is a number that can be rebuilt from its own digits. The function is_armstrong_number receives number, raises each digit to the power of the total digit count, adds the results, and compares the sum with the original number. Return True if they match, otherwise return False.

Примеры

Ввод
5
Вывод
True
Ввод
10
Вывод
False
Ввод
153
Вывод
True

Нужно реализовать

def is_armstrong_number(number: int) -> bool:

Теги

math
PostgreSQLv16
Entre para enviar

O resultado da execução do código aparecerá aqui

Visible tests
1
Input
5
ExpectedTrue
2
Input
10
ExpectedFalse
3
Input
153
ExpectedTrue
4
Input
154
ExpectedFalse
5
Input
9474
ExpectedTrue
6
Input
9926315
ExpectedTrue
Focus radio
Paused · SomaFM · Fluid