input: from typing import List
  
  def Fibonacci(n: int) -> List[int]:
      """ Return a list of Fibonacci numbers up to a given number n.
      >>> Fibonacci(0)
      [0]
      >>> Fibonacci(1)
      [0, 1]
      >>> Fibonacci(5)
      [0, 1, 1, 2, 3]
      """
      if n == 0:
          return [0]
      elif n == 1:
          return [0, 1]
      fib_sequence = [0, 1]
      while fib_sequence[-1] + fib_sequence[-2] <= n:
          fib_sequence.append(fib_sequence[-1] + fib_sequence[-2])
      return fib_sequence
output:     if n == 0:
          return [0]
      elif n == 1:
          return [0, 1]
      fib_sequence = [0, 1]
      while fib_sequence[-1] + fib_sequence[-2] <= n:
          fib_sequence.append(fib_sequence[-1] + fib_sequence[-2])
      return fib_sequence