input: def fibonacci_series(n: int) -> None:
      """ Print the Fibonacci series up to a given number.
      >>> fibonacci_series(5)
      0
      1
      1
      2
      3
      """
      a = 0
      b = 1
      if n < 0: 
          print("Incorrect input") 
      elif n == 0: 
          print(a) 
      elif n == 1: 
          print(a) 
          print(b) 
      else: 
          print(a) 
          print(b) 
          for i in range(2, n): 
              c = a + b 
              a = b 
              b = c 
              print(c) 
  
  n = int(input("Enter a number: "))
  fibonacci_series(n)
output:     a = 0
      b = 1
      if n < 0: 
          print("Incorrect input") 
      elif n == 0: 
          print(a) 
      elif n == 1: 
          print(a) 
          print(b) 
      else: 
          print(a) 
          print(b) 
          for i in range(2, n): 
              c = a + b 
              a = b 
              b = c 
              print(c)