input: Below is an instruction that describes a task. Write a response that appropriately completes the request.
  
  ### Instruction:
  Write a function in Python to print the Fibonacci series up to a given number of terms.
  
  ### Input:
  
  
  ### Output:
  def printFibonacciSeries(n): 
    
      # Taking 1st two fibonacci numbers as 0 and 1 
      if n > 0: 
          print(0, end = " ") 
      if n > 1: 
          print(1, end = " ") 
    
      f1 = 0
      f2 = 1
    
      for i in range(2, n): 
          next = f1 + f2 
          print(next, end = " ") 
    
          # update values 
          f1 = f2 
          f2 = next
  
  assert printFibonacciSeries(5)==0 1 1 2 3 
  assert printFibonacciSeries(7)==0 1 1 2 3 5 8 
  assert printFibonacciSeries(0)==" "
  assert printFibonacciSeries(1)==0 
  assert printFibonacciSeries(2)==0 1
output:     
      # Taking 1st two fibonacci numbers as 0 and 1 
      if n > 0: 
          print(0, end = " ") 
      if n > 1: 
          print(1, end = " ") 
    
      f1 = 0
      f2 = 1
    
      for i in range(2, n): 
          next = f1 + f2 
          print(next, end = " ") 
    
          # update values 
          f1 = f2 
          f2 = next
  