def fib(n, start=0): res = [] a, b = start, start+1 res.append(a) for i in range(n-1): res.append(b) a, b = b, a+b return res print(fib(5))
To embed this project on your website, copy the following code and paste it into your website's HTML: