# checkinhg its a Armstrong number or not

num = int(input("Enter the digit: "))

num_str = str(num)
n = len(int_str)

sum = 0

for digit in num_str:
    sum += int(digit) ** n
    
if sum == num:
    print("Its a Armstrong")
else:
    print("Its not a Armstrong")

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: