Use Python to create an array that stores the Fibonacci sequence up to the nth number.
n = 10
def fibonacci(n): 
    a = 0
    b = 1
    fibo = []

    for i in range(n):
        fibo.append(a)
        c = a + b
        a = b
        b = c

    return fibo

fibonacci(10)