Write a Python Program to Check if a Number is an Armstrong Number
Topic: Write a Python Program to Check if a Number is an Armstrong Number
Solution
def amstrong_check(n): a=list(map(int,str(n))) b=list(map(lambda x:x**3,a)) if(sum(b)==n): return True else: return False
List all Python Programs