From a840b0792cf17ce2af3ae49fc9747eda0d0a2c90 Mon Sep 17 00:00:00 2001 From: long-bread <72152680+long-bread@users.noreply.github.com> Date: Fri, 1 Oct 2021 12:04:32 +0530 Subject: [PATCH] Update armstrong.py --- armstrong.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/armstrong.py b/armstrong.py index a988381..2d46a5d 100644 --- a/armstrong.py +++ b/armstrong.py @@ -1,9 +1,7 @@ -# Python program to check if the number is an Armstrong number or not +# Python program to check if the number is an Armstrong number or not which takes input from the user +num = int(input("Enter a number ")) -# take input from the user -num = int(input("Enter a number: ")) - -# initialize sum +# initialize the sum sum = 0 # find the sum of the cube of each digit