The following function checks whether a number is Armstrong or not.
#An Armstrong Number is a number which is equal to the sum of the cube of its individual
#digit
def armstrong(n):
sum-0
i
while(?1?
d=" 2
im= su+ 57
74?
if 25?
return I
else:
return
a) What is the expression / value at ?1?
(b) What is the expression/ value at ?2?
c)What is the expression/ value at ?3?.
(d) What is the expression/ value at 24?
(e) What is the expression / value at 75?
python program
Answers
Answered by
0
Answer:
c) 45 is the expression value at 3c
Similar questions