input: Write a function to generate and print the Fibonacci series up to a given number of terms `n`. If `n` is 0, the function should print nothing.
  def printFibonacciSeries(n): 
    
      # Taking 1st two fibonacci nubers as 0 and 1 
      f1 = 0
      f2 = 1
      if n > 0:
          print(f1, end = " ")
      if n > 1:
          print(f2, end = " ")
    
      for i in range(2, n): 
          next = f1 + f2 
          print(next, end = " ") 
    
          # update values 
          f1 = f2 
          f2 = next
  assert printFibonacciSeries(0) == None
  assert printFibonacciSeries(1) == None
  assert printFibonacciSeries(5) == None
  assert printFibonacciSeries(10) == None
output: def printFibonacciSeries(n): 
    
      # Taking 1st two fibonacci nubers as 0 and 1 
      f1 = 0
      f2 = 1
      if n > 0:
          print(f1, end = " ")
      if n > 1:
          print(f2, end = " ")
    
      for i in range(2, n): 
          next = f1 + f2 
          print(next, end = " ") 
    
          # update values 
          f1 = f2 
          f2 = next