input: Write a function in Python to print the Fibonacci series up to a specified number of terms.
  
  assert printFibonacciSeries(5)==[0, 1, 1, 2, 3]
  assert printFibonacciSeries(7)==[0, 1, 1, 2, 3, 5, 8]
  assert printFibonacciSeries(10)==[0, 1, 1, 2, 3, 5, 8, 13, 21, 34]
  assert printFibonacciSeries(0)==[]
  assert printFibonacciSeries(1)==[0]
  
output: def printFibonacciSeries(n):
      if n == 0:
          return []
      elif n == 1:
          return [0]
      fib_series = [0, 1]
      for i in range(2, n):
          fib_series.append(fib_series[-1] + fib_series[-2])
      return fib_series