input: Write a function to print the Fibonacci series up to the nth term. If n is 0 or 1, print the respective number. If n is less than 0, print an empty line.
  
  **Assertion Tests:**
  assert printFibonacciSeries(0) == print("")
  assert printFibonacciSeries(1) == print("0")
  assert printFibonacciSeries(5) == print("0 1 1 2 3")
  assert printFibonacciSeries(10) == print("0 1 1 2 3 5 8 13 21 34")
  assert printFibonacciSeries(-5) == print("")
output: def printFibonacciSeries(n):
      if n < 0:
          print("")
      elif n == 0:
          print("0")
      elif n == 1:
          print("0 1")
      else:
          a, b = 0, 1
          series = [a, b]
          for _ in range(2, n):
              a, b = b, a + b
              series.append(b)
          print(" ".join(map(str, series)))