Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to code fibonacci series in python

def fib(n):
    a, b = 0, 1
    while a < n:
        print(a, end=' ')
        a, b = b, a+b
    print()


fib(1000)
 
PREVIOUS NEXT
Tagged: #code #fibonacci #series #python
ADD COMMENT
Topic
Name
7+9 =