Q:

Write a Python program to get the Fibonacci series between 0 to 30

0

Write a Python program to get the Fibonacci series between 0 to 30

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

I have used python 3.7 compiler for debugging purpose.

num,y=0,1
 
while y<30:
    print(y)
    num,y = y, num+y

Result:

1

1

2

3

5

8

13

21

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Write a Python program that prints all the numbers... >>
<< Write a Python program to convert temperatures to ...