Generate the Fibonacci sequence.
Implement generate_fibonacci(n) to return the first n terms, starting with 0, 1. The input is a nonnegative integer, and the output must be a list of integers. Return an empty list when n is zero.
def generate_fibonacci(n):