def print_hello_world():
    print("hello world")

def fib(n):
    a, b = 0, 1
    for i in range(n):
        a , b = b, a + b
        yield(a)
print(list(fib(10)))

def print_hello_world():
    print("hello world")

def fib(n):
    fibs = []
    a, b = 0, 1
    for i in range(n):
        a , b = b, a + b
        fibs.append(a)
    return fibs
print(list(fib(10)))

CHange test.py to using lists