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