Skip to content

Instantly share code, notes, and snippets.

@ShadowofZeus
Created November 30, 2019 21:45
Show Gist options
  • Save ShadowofZeus/69184ae1499e93d2fa3d441a74f62df1 to your computer and use it in GitHub Desktop.
Save ShadowofZeus/69184ae1499e93d2fa3d441a74f62df1 to your computer and use it in GitHub Desktop.
Exercise 13 - Fibonnaci Numbers
"""
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