You are viewing a single comment's thread. Return to all comments →
def fibonacci(n):
p = 0 c = 1 for i in range(1,n): k = c c = p+c p = k return c
Seems like cookies are disabled on this browser, please enable them to open this website
Recursion: Fibonacci Numbers
You are viewing a single comment's thread. Return to all comments →
def fibonacci(n):