Write a Python program to get the Fibonacci series between 0 to 30
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
2
3
5
8
13
21
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
I have used python 3.7 compiler for debugging purpose.
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