input: Write a python function to generate the first n Fibonacci numbers.
  assert generate_fibonacci(5) == [0, 1, 1, 2, 3]
  assert generate_fibonacci(10) == [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]
  assert generate_fibonacci(1) == [0]
output: def generate_fibonacci(n):
      if n == 1:
          return [0]
      fibonacci_sequence = [0, 1]
      while len(fibonacci_sequence) < n:
          fibonacci_sequence.append(fibonacci_sequence[-1] + fibonacci_sequence[-2])
      return fibonacci_sequence