Skip to content

Instantly share code, notes, and snippets.

@javajini
Created April 17, 2017 02:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save javajini/6a3a3f89f0b3fe42da53740dbd40c272 to your computer and use it in GitHub Desktop.
Save javajini/6a3a3f89f0b3fe42da53740dbd40c272 to your computer and use it in GitHub Desktop.
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