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