1.
def fib(num):
result = [0,1]
for i in range(num-2):
result.append(result[-2] + result[-1])
return result
print(fib(10))
[0, 1, 1]
2.
def fib(num):
result = [0,1]
for i in range(num-2):
result.append(result[-2] + result[-1])
return result
print(fib(10))
[0, 1, 1, 2, 3, 5, 8, 13, 21, 34]