n = 6 if n == 0: fib_n = 0 elif n == 1: fib_n = 1 else: a, b = 0,1 for _ in range(2, n+1): a, b = b, a + b fib_n = b print(fib_n)
To embed this project on your website, copy the following code and paste it into your website's HTML: