n=int(input("Enter the number = "))
s=0
d=n
while n!=0:
q1=n%10
n=n//10
s+=(q1**3)
if s==d:
print("It is an armstrong nummber")
else:
print("It is not an armstrong number")
Hello user, This is a blog that provides you various coding ideas and projects in Python language.