input: Write a function to determine if it is possible to obtain a Fibonacci series up to a given number 'n' by iteratively calculating and printing the Fibonacci numbers. If 'n' is less than or equal to 0, print a message indicating an invalid input.
  
  def printFibonacciSeries(n):
      if n <= 0:
          print("Invalid input: 'n' must be greater than 0")
          return
      
      a, b = 0, 1
      for _ in range(n):
          print(a, end=" ")
          a, b = b, a + b
  
  assert printFibonacciSeries(5)==None
  assert printFibonacciSeries(10)==None
  assert printFibonacciSeries(-1)==None
  assert printFibonacciSeries(0)==None
  assert printFibonacciSeries(1)==None
output: def printFibonacciSeries(n):
      if n <= 0:
          print("Invalid input: 'n' must be greater than 0")
          return
      
      a, b = 0, 1
      for _ in range(n):
          print(a, end=" ")
          a, b = b, a + b