Skip to content

Instantly share code, notes, and snippets.

@dmitryTsatsarin
Created May 24, 2016 06:25
Show Gist options
  • Save dmitryTsatsarin/6d6327b6fda79c0e61e4ab8b17d28576 to your computer and use it in GitHub Desktop.
Save dmitryTsatsarin/6d6327b6fda79c0e61e4ab8b17d28576 to your computer and use it in GitHub Desktop.
Fibonacci (python)
f = [1, 1]
n = 15
for i in xrange(2, n):
f.append(f[i-1]+f[i-2])
print f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment