Skip to content

Instantly share code, notes, and snippets.

@sirishaditya
Created June 27, 2016 06:53
Show Gist options
  • Save sirishaditya/fd40fba4114c8764b430e7392eddf9c0 to your computer and use it in GitHub Desktop.
Save sirishaditya/fd40fba4114c8764b430e7392eddf9c0 to your computer and use it in GitHub Desktop.
PracticePython.Org- 13 Fibonacci
def fib(n):
a = 0
b = 0
c = 1
print (a,b)
for i in range(n-2):
print (c,end=',')
a = b
b = c
c = a + b
fib(13)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment