Python program to check Armstrong number














































Python program to check Armstrong number



In this article, we are going to learn how to check for Armstrong number using Python Program

Armstrong number is a three digit number whose sum of cube of each digit is equal to that three digit number.
Like abc is an Armstrong number if abc=a^3+b^3+c^3

Source code :-
 
num is variable that would take a 3 digit number from user.

Output :-


Comments