#write a program to check Armstrong number
num = int(input("Enter a number= "))
sum=0
temp = num
while(temp>0):
digit = temp % 10
sum=sum+digit ** 3
temp=temp// 10
if (num==sum):
print(num,"it is a Armstrong number")
else:
print(num,"it is not an Armstrong number")
Enter a number= 153 153 it is a Armstrong number
#write a program to print fibanacci sequence
num=10
n1,n2=0,1
print("Fibonacci Series:", n1, n2, end=" ")
for i in range(2, num):
n3 = n1 + n2
n1 = n2
n2 = n3
print(n3, end=" ")
print()
Fibonacci Series: 0 1 1 2 3 5 8 13 21 34