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