mirror of
https://github.com/Xevion/exercism.git
synced 2025-12-06 15:15:01 -06:00
'init'
This commit is contained in:
2
python/armstrong-numbers/armstrong_numbers.py
Normal file
2
python/armstrong-numbers/armstrong_numbers.py
Normal file
@@ -0,0 +1,2 @@
|
||||
def is_armstrong_number(number):
|
||||
return sum([int(digit) ** len(str(number)) for digit in str(number)]) == number
|
||||
Reference in New Issue
Block a user