input: Write a function to print the Fibonacci series up to a given number of terms.
  
  def printFibonacciSeries(n):
      if n <= 0:
          print("Please enter a positive integer")
      elif n == 1:
          print("Fibonacci sequence upto",n,":")
          print(0)
      else:
          print("Fibonacci sequence:")
          f1, f2 = 0, 1
          print(f1, f2, end=" ")
          for i in range(2, n):
              next = f1 + f2
              print(next, end=" ")
              f1 = f2
              f2 = next
  
  assert printFibonacciSeries(5) == None
  assert printFibonacciSeries(10) == None
  assert printFibonacciSeries(0) == None
  assert printFibonacciSeries(1) == None
output: def printFibonacciSeries(n):
      if n <= 0:
          print("Please enter a positive integer")
      elif n == 1:
          print("Fibonacci sequence upto",n,":")
          print(0)
      else:
          print("Fibonacci sequence:")
          f1, f2 = 0, 1
          print(f1, f2, end=" ")
          for i in range(2, n):
              next = f1 + f2
              print(next, end=" ")
              f1 = f2
              f2 = next