Skip to content

Instantly share code, notes, and snippets.

@mstepniowski
Created March 29, 2009 19:45
Show Gist options
  • Save mstepniowski/87502 to your computer and use it in GitHub Desktop.
Save mstepniowski/87502 to your computer and use it in GitHub Desktop.
def fib2(n):
a, b = 0, 1
for x in range(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