input: Write a function to determine if a given number is an Armstrong number. To be considered an Armstrong number, the sum of its own digits each raised to the power of the number of digits must equal the number itself. If the number is an Armstrong number, return True; otherwise, return False.
  
  def is_armstrong_number(num):
    order = len(str(num))
    sum = 0
    temp = num
    while temp > 0:
      digit = temp % 10
      sum += digit ** order
      temp //= 10
    if num == sum:
      return True  
    else:
      return False
  
  assert is_armstrong_number(153) == True
  assert is_armstrong_number(370) == True
  assert is_armstrong_number(9474) == True
  assert is_armstrong_number(1634) == True
  assert is_armstrong_number(123) == False
output: def is_armstrong_number(num):
    order = len(str(num))
    sum = 0
    temp = num
    while temp > 0:
      digit = temp % 10
      sum += digit ** order
      temp //= 10
    if num == sum:
      return True  
    else:
      return False