input: 
  def is_armstrong_number(num):
      """Checks if a given number is an Armstrong number.
      
      >>> is_armstrong_number(153)
      True
      >>> is_armstrong_number(9474)
      True
      >>> is_armstrong_number(9475)
      False
      >>> is_armstrong_number(1)
      True
      >>> is_armstrong_number(0)
      True
      """
      n = len(str(num))
      temp = num
      sum_of_digits = 0
      
      while temp > 0:
          digit = temp % 10
          sum_of_digits += digit ** n
          temp //= 10
          
      return num == sum_of_digits
  
output:     n = len(str(num))
      temp = num
      sum_of_digits = 0
      
      while temp > 0:
          digit = temp % 10
          sum_of_digits += digit ** n
          temp //= 10
          
      return num == sum_of_digits