Skip to content

Instantly share code, notes, and snippets.

@yask123
Created July 21, 2014 10:11
Show Gist options
  • Save yask123/978d985c965c9e559ec8 to your computer and use it in GitHub Desktop.
Save yask123/978d985c965c9e559ec8 to your computer and use it in GitHub Desktop.
Generating Fibonacci Series
def gen_fibo(n):
a,b=0,1
while(a<n):
print(a,end=' ')
a,b=b,a+b
print()
gen_fibo(100)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment