Created
November 30, 2019 21:45
-
-
Save ShadowofZeus/69184ae1499e93d2fa3d441a74f62df1 to your computer and use it in GitHub Desktop.
Exercise 13 - Fibonnaci Numbers
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
""" | |
def welcome(): | |
return(print("Welcome to Shadow's Coding Studio")) | |
def get_values(): | |
capture_list=[1,1] | |
size_of_list=int(input("How many Fibonacci's to generate: ")) | |
n=2 | |
for i in range(1,size_of_list-1): | |
capture_list.append(capture_list[n-1]+capture_list[n-2]) | |
n=n+1 #increment your counter for every cycle | |
print(capture_list) | |
####################### $$$$$$$$$$$$$$$$$$$ @@@@@@@@@@@@@@@@ ######################### | |
welcome() | |
get_values() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment