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
write a short program to print out the fibonacci sequence up to the number specified by the user.
user
def print_fibonacci(n): 
    a = 0
    b = 1
 
     print("fibonacci sequence:")
    while a < n:
        print(a)
        c = a + b
        a = b
        b = c

n = int(input("enter a number:"))
print_fibonacci(n)
assistant