0 out of 464 challenges solved
An **Armstrong number** (also known as a narcissistic number) is a number that is equal to the sum of its own digits raised to the power of the number of digits. Write a function `is_armstrong_number(number: int) -> bool` that checks whether a given number is an Armstrong number. #### Example Usage ```python [main.nopy] print(is_armstrong_number(153)) # True, because 1^3 + 5^3 + 3^3 = 153 print(is_armstrong_number(9474)) # True, because 9^4 + 4^4 + 7^4 + 4^4 = 9474 print(is_armstrong_number(123)) # False, because 1^3 + 2^3 + 3^3 != 123 ``` #### Constraints - The input number will be a non-negative integer. - The function should return `True` if the number is an Armstrong number, otherwise `False`.
def is_armstrong_number(number: int) -> bool: """ Determine if the given number is an Armstrong number. Args: number (int): The number to check. Returns: bool: True if the number is an Armstrong number, False otherwise. """ # Placeholder for the solution pass