Create a function in Python to compute a given number of Fibonacci numbers.
def fibonacci(n):
    a = 0
    b = 1
    for i in range(n):
        a, b = b, a + b
    return a

num = fibonacci(10)
print(num)