user
Write a code that prints the Fibonacci sequence up to the nth term.

assistant
Wrote a code that prints the Fibonacci sequence up to the nth term, given n as the input parameter. The code prints out the result from the 0th term to the nth term of the Fibonacci sequence.