num=int(input("Enter the number"))
temp=1
k=0
a=0
sum=0
while sum<=num:
sum=temp+k
temp=sum
k=temp
if sum==num:
a=a+1
print("Yes. {} is a fibonnaci number".format(num))
break
if a==0:
print("No. {} is NOT a fibonacci number".format(num))
Enter the number2 Yes. 2 is a fibonnaci number
num = int(input("enter a number:"))
t = num
cube_sum = 0
while t!=0:
k=t%10
cube_sum+=k**3
t=t//10
if cube_sum==num:
print(num,"is an armstrong number")
else:
print(num,"is not a armstrong number")
enter a number:153 153 is an armstrong number