Posted on:

03 Dec 2022

1

My Fibonacci Sequence

n = 10
a = 0
b = 1
f = []
for i in range(n):
    f.append(a)
    c = a+b
    a = b
    b = c

print(f' the first {n} fibonacci numbers are, {f}')
Attempt/Answer

0 answers ( 0 marked as helpful)

Submit an answer