input: 
  def fibonacci(n: int) -> List[int]:
      """Generate and print Fibonacci series up to a given number 'n'.
      >>> fibonacci(10)
      [0, 1, 1, 2, 3, 5, 8]
      >>> fibonacci(5)
      [0, 1, 1, 2, 3]
      """
      result = []
      a, b = 0, 1
      while a < n:
          result.append(a)
          a, b = b, a + b
      return result
  
output:     result = []
      a, b = 0, 1
      while a < n:
          result.append(a)
          a, b = b, a + b
      return result