def fib(n): f=[0,1] for i in range(2,n+1): f.append(f[i-1]+f[i-2]) return f[n] print(fib(9))
To embed this program on your website, copy the following code and paste it into your website's HTML: