Skip to content

Commit 4f02b31

Browse files
authored
Update and rename Amstrong to armstrong_number.py
1 parent 374abf3 commit 4f02b31

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Amstrong renamed to armstrong_number.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# Python program to check if the number is an Armstrong number or not
1+
# Python program to check if the number is an Armstrong number with the index of 3 or not
2+
# for input try numbers 153, 370, 371, 407
23

34
# take input from the user
45
num = int(input("Enter a number: "))
@@ -15,6 +16,6 @@
1516

1617
# display the result
1718
if num == sum:
18-
print(num,"is an Armstrong number")
19+
print(num, "is an Armstrong number.")
1920
else:
20-
print(num,"is not an Armstrong number")
21+
print(num, "is not an Armstrong number.")

0 commit comments

Comments
 (0)