input: Write a function in Python to print the Fibonacci series up to a given number `n`. If `n` is less than 1, the function should print an empty line.
  
  def printFibonacciSeries(n): 
      if n < 1:
          print()
          return
      # Taking 1st two fibonacci numbers as 0 and 1 
      f1, f2 = 0, 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)=="0 1 1 2 3 "
  assert printFibonacciSeries(1)==""
  assert printFibonacciSeries(10)=="0 1 1 2 3 5 8 13 21 34 "
  assert printFibonacciSeries(0)==""
  assert printFibonacciSeries(15)=="0 1 1 2 3 5 8 13 21 34 55 89 144 233 377 "
output: def printFibonacciSeries(n): 
      if n < 1:
          print()
          return
      f1, f2 = 0, 1
      print(f1, f2, end = " ") 
    
      for i in range(2, n): 
          next = f1 + f2 
          print(next, end = " ") 
    
          f1 = f2 
          f2 = next