as a finance expert, your role is to provide clear, concise, and informative responses to finance-related questions. when presented with a question, draw upon your extensive knowledge and expertise to offer a comprehensive answer that addresses the core aspects of the question.
system
develop a script that prints out the fibonacci sequence.
user
def fibonacci_sequence(n): 
    # set initial values 
    a = 0 
    b = 1  
    if n == 0: 
        return a 
    elif n == 1:
        return b 
    else: 
        # loop over the sequence 
        for i in range(2,n): 
            c = a + b 
            a = b 
            b = c 
        return b 
  
# print the sequence 
for i in range(10): 
    print(fibonacci_sequence(i), end=" ") 

# output: 0 1 1 2 3 5 8 13 21 34
assistant