Create a Python program that prints out the Fibonacci sequence up to the nth number given as input.
n = 10
def fibonacci(n):
    fib_list = [0 , 1]

    for i in range(2 , n):
        fib_list.append(fib_list[i - 2] + fib_list[i - 1])

    return fib_list[:n]

print(fibonacci(n))