input: Write a function to print the Fibonacci series up to a given number of terms. The function should take an integer `n` as input, which represents the number of terms in the series. If `n` is less than or equal to 0, the function should print an empty string.
  def printFibonacciSeries(n): 
      if n <= 0:
          print("")
          return
    
      f1 = 0
      f2 = 1
      print(f1, f2, end = " ") 
    
      for i in range(2, n): 
          next = f1 + f2 
          print(next, end = " ") 
    
          f1 = f2 
          f2 = next
  
  assert printFibonacciSeries(5) == "0 1 1 2 3"
  assert printFibonacciSeries(1) == "0 1"
  assert printFibonacciSeries(0) == ""
  assert printFibonacciSeries(8) == "0 1 1 2 3 5 8 13"
  assert printFibonacciSeries(-3) == ""
output: def printFibonacciSeries(n): 
      if n <= 0:
          print("")
          return
    
      f1 = 0
      f2 = 1
      print(f1, f2, end = " ") 
    
      for i in range(2, n): 
          next = f1 + f2 
          print(next, end = " ") 
    
          f1 = f2 
          f2 = next