-
-
Save dmitryTsatsarin/6d6327b6fda79c0e61e4ab8b17d28576 to your computer and use it in GitHub Desktop.
Fibonacci (python)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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