Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
def fib(n):
a,b = 0, 1
for x in xrange(n):
a,b = b, a+b
return a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment