Skip to content

Instantly share code, notes, and snippets.

@libert-xyz
Created January 8, 2016 15:20
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 libert-xyz/385490dee3d9f5411cc5 to your computer and use it in GitHub Desktop.
Save libert-xyz/385490dee3d9f5411cc5 to your computer and use it in GitHub Desktop.
#Libert R Schmidt
#http://www.practicepython.org/exercise/2014/04/30/13-fibonacci.html
def fibo(num):
s1 = 0
s2 = 1
l = []
for i in range(num+1):
s2 = s2 + s1
s1 = s2 - s1
l.append(s2)
print (l)
num = int(input("range of numbers: "))
fibo(num)
@mprat
Copy link

mprat commented Mar 9, 2016

Great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment