#1.Armstrong number
n=int(input("Enter Number:"))
c=0
k=n
while n > 0 :
rem=n%10
c=c+(rem**3)
n=n//10
if(c==k):
print(k, "is Armstrong number")
else:
print(k,"is not Armstrong number")
Enter Number:153 153 is Armstrong number
# 2.Fibonacci Series
n=int(input("Enter number of sequence:"))
num1=0
num2=1
count=0
if(n <=0):
print("Enter a valid number")
elif(n==1):
print(num1)
else:
while(count < n):
print(num1)
num3=num1+num2
num1=num2
num2=num3
count+=1
Enter number of sequence:5 0 1 1 2 3