About This Site
Created on 13th October 2020 by Yijun Hu
Back
# Python
def fibonacci(a, b, terms):
out = []
count = 0
while count < terms:
out.append(a)
c = a + b
a = b
b = c
count += 1
return out