Learn practical skills, build real-world projects, and advance your career
Created 5 years ago
a=int(input("Enter a no"))
num=a
rem=0
sum=0
while(num>0):
rem=num%10
rem=rem*rem*rem
num=int(num/10)
sum=sum+rem
if(sum==a):
print("armstrong no")
else:
print("not")
print(4*"*")
a=int(input("Enter a number"))
i=1
fact=1
while(i<=a):
fact=fact*i
i=i+1
print("Factorial of the given no is {one}".format(one=fact))
Enter a number3
Factorial of the given no is 6
print("{s} something {v}".format(s=5,v=10))
5 something 10
range(5)
range(0, 5)