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