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