Python program to print Fibonacci series upto a certain limit

preview_player
Показать описание
Question 10- write a program to print Fibonacci series upto a certain limit.

The Fibonacci Sequence is the series of numbers:

0, 1, 1, 2, 3, 5, 8, 13, 21, 34, ...
the next number is found by adding up the two numbers before it:

👉the 2 is found by adding the two numbers before it (1+1),
👉the 3 is found by adding the two numbers before it (1+2),
👉the 5 is (2+3),
👉and so on!

Class 11 - First Python Assignment solution
#python #pythonprogram

👉Source code is given in the comment box💖💖

Guys if you also want that i solve your question then comment me.

Asked by
Rashmi Singh
Рекомендации по теме
Комментарии
Автор

#program to print Fibonacci series upto a certain limit
x, y=0, 1
print(x)
print(y)

while y<50:
print(y)
x, y = y, x+y

parvatcomputertechnology