Last active
March 7, 2018 22:13
-
-
Save lohxx/8e3cefe29326f0806640da163771e1a4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def ArmstrongNumbers(number): | |
return True if sum([int(x) ** len(str(number)) for x in str(number)]) == number else False |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment