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