This commit is contained in:
Xevion
2019-07-13 04:16:23 -05:00
parent f10c9ee99c
commit d558cf2d6c
15 changed files with 90 additions and 1 deletions

View File

@@ -0,0 +1,2 @@
def is_armstrong_number(number):
return sum([int(digit) ** len(str(number)) for digit in str(number)]) == number