input: from typing import List
  
  def Fibonacci_series(n: int) -> List[int]:
      """
      Calculate the Fibonacci numbers up to a given number n and return them as a list.
      
      >>> Fibonacci_series(0)
      [0]
      >>> Fibonacci_series(1)
      [0, 1]
      >>> Fibonacci_series(5)
      [0, 1, 1, 2, 3, 5]
      >>> Fibonacci_series(10)
      [0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55]
      """
      fib_sequence = [0]
      if n == 0:
          return fib_sequence
      fib_sequence.append(1)
      if n == 1:
          return fib_sequence
      while len(fib_sequence) <= n:
          fib_sequence.append(fib_sequence[-1] + fib_sequence[-2])
      return fib_sequence
output:     fib_sequence = [0]
      if n == 0:
          return fib_sequence
      fib_sequence.append(1)
      if n == 1:
          return fib_sequence
      while len(fib_sequence) <= n:
          fib_sequence.append(fib_sequence[-1] + fib_sequence[-2])
      return fib_sequence