Skip to content

Instantly share code, notes, and snippets.

@arbaaz
Created August 29, 2014 06:58
Show Gist options
  • Save arbaaz/7d40328c7fd7b47d1ba0 to your computer and use it in GitHub Desktop.
Save arbaaz/7d40328c7fd7b47d1ba0 to your computer and use it in GitHub Desktop.
Smallest Fibnocci code in python
def fib(n):
a,b=0,1
while a<n:
print a,
a,b=b,a+b
fib(20000000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment