Python Code Challenge

201 - What is wrong with the code below?
def generate_fibonacci(n):
    a, b = 0, 1
    for i in range(m):
        a, b = b, a + b
    return a

print(generate_fibonacci(10))