Python Program to Check Armstrong Number

Here you will get python program to check armstrong number.

A number is said to be an armstrong number if sum of its digits raised to the power n is equal to itself. Here n is total digits in number.

For example 370 is armstrong number.

Here n = 3, so 33 + 7+ 0= 27 + 343 + 0 = 370

Python Program to Check Armstrong Number

Output

enter a number: 370
armstrong number

Comment below if you have any queries related to above program for armstrong number in python.

Leave a Reply

Your email address will not be published. Required fields are marked *