input: Write a function to print the Fibonacci series up to the nth term.
  assert printFibonacciSeries(5)
  assert printFibonacciSeries(10)
  assert printFibonacciSeries(1)
  assert printFibonacciSeries(0)
  assert printFibonacciSeries(20)
output: def printFibonacciSeries(n):
      if n <= 0:
          return
      a, b = 0, 1
      for _ in range(n):
          print(a, end=' ')
          a, b = b, a + b
      print()