Python program to check if the number provided by the user is an Armstrong number or not

 

Sample Input
Enter a number 123
Sample Output
123 is not an Armstrong number

Sample Input
Enter a number 153
Sample Output
153 is an Armstrong number

You may also like...