<prompt> Kuandika kanuni ambayo kuangalia kama idadi fulani ni Armstrong idadi.  <response>: An Armstrong number is a number that is equal to the sum of its own digits each raised to the power of the number of digits. Here is an example of a Python code that checks if a given number is an Armstrong number:pythondef is_armstrong_numbernum: n_str strnum n_len lenn_str sum 0 for digit in n_str: sum intdigit n_len return sum num test the functionn 153if is_armstrong_numbern: printfn is an Armstrong numberelse: printfn is not an Armstrong numberThis code defines a function called is_armstrong_number that takes a number as an argument. Inside the function we convert the number to a string and take its length as the power. Then, the sum of each digit raised to the power of the number of digits is calculated using a for loop. Finally, the function returns True if the sum is equal to the original number, meaning it is an Armstrong number, and False otherwise. The function is then tested with the number 153, which is an Armstrong number. 