input: Write a function to print the Fibonacci series up to a given number `n` using Python. If `n` is less than or equal to 0, print an error message. Otherwise, print the Fibonacci series starting from 0 and 1 up to the nth term.
  
  def printFibonacciSeries(n):
      if n <= 0:
          print("Please enter a number greater than 0")
          return
      
      # 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(0)=="Please enter a number greater than 0"
  assert printFibonacciSeries(10)==None
output: def printFibonacciSeries(n):
      if n <= 0:
          print("Please enter a number greater than 0")
          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