input: Write a function to print the Fibonacci series up to a given number of terms. If the given number of terms is less than or equal to zero, print "Invalid input".
  
  def printFibonacciSeries(n): 
      if n <= 0:
          print("Invalid input")
          return
      # Taking 1st two fibonacci numbers 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(-1) == None
  assert printFibonacciSeries(0) == None
output: def printFibonacciSeries(n): 
      if n <= 0:
          print("Invalid input")
          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