Created
February 2, 2016 11:38
-
-
Save Sangram92/35be22aaa36186f156ff to your computer and use it in GitHub Desktop.
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
count = input("How many times ") | |
fibonnaci = [] | |
first = 0 | |
second = 1 | |
for i in range(count): | |
result = first + second | |
fibonnaci.append(result) | |
first = second | |
second = result | |
print fibonnaci |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment