input: Write a function to print the first n numbers of the Fibonacci series. The function should take an integer n as input and print each number in the series separated by a space.
  def printFibonacciSeries(n): 
    
      # Taking 1st two fibonacci nubers as 0 and 1 
      f1 = 0
      f2 = 1
      print(f1, f2, end = " ") 
    
      for i in range(2, n): 
          next = f1 + f2 
          print(next, end = " ") 
    
          # update values 
          f1 = f2 
          f2 = next
  
  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