How to create a fibonacci Series in Python ?
I dont know about other langauges but in python it’s much easier to create a fibonacci series : –
Here is the simple code for creating a fibonacci series. Use a terminal to try the following code : –
- >>> a, b = 20, 21
>>> while b < 100:
… print b
.. a, b = b, a+b