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