input: from typing import List
  
  def fibonacci_series(n: int) -> List[int]:
      """ Print Fibonacci series up to a given number `n`.
      >>> fibonacci_series(0)
      []
      >>> fibonacci_series(1)
      [0]
      >>> fibonacci_series(2)
      [0, 1]
      >>> fibonacci_series(10)
      [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]
      """
output:     if n <= 0:
          return []
      elif n == 1:
          return [0]
      elif n == 2:
          return [0, 1]
      
      fib_series = [0, 1]
      for i in range(2, n):
          fib_series.append(fib_series[-1] + fib_series[-2])
      
      return fib_series