Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

fibonacci sequence python

num = 1
num1 = 0
num2 = 1
import time
for i in range(0, 10):
    print(num)
    num = num1 + num2
    num1 = num2
    num2 = num
    time.sleep(1)
Source by # #
 
PREVIOUS NEXT
Tagged: #fibonacci #sequence #python
ADD COMMENT
Topic
Name
6+4 =