Lesson 10: "Repetition makes the master": Fibonacci series with role play

Post date: Jan 16, 2019 4:04:34 PM

a = 0 #a gets value of 0

b = 1 #b get value of 1

c = a + b #c gets value of a plus b

print(a) #a displayed

a = b # a gets value of b

b = c # b gets value of c

c = a + b #c gets value of a plus b

print(a)

a = b

b = c

c = a + b

print(a)

for i in range(0,10000):

a = b

b = c

c = a + b

print(a)