Header Ads Widget

Responsive Advertisement

Write A Python Program That Creates A Tuple Storing First 10 Terms Of Fibonacci Series

 

# write a python program that creates a tuple storing first 10 terms of fibonacci series

a, b = 0, 1
my_tuple = ()
for index in range(100):
my_tuple += (a,)
a, b = b, a+b

print("Fibonacci Series stored in tuple : ")
print(my_tuple)

Post a Comment

0 Comments