This file contains 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
# creating a list of fibonacci numbers (capped at 20) | |
# adds the two previous numbers to equal the next | |
def get_fib_list_length(): | |
return 20 | |
def generate_fib(num): | |
result = [] | |
for n in range(num): | |
if n == 0: |