input: Write a function to print the Fibonacci series up to n numbers where n is a user input. If n is less than or equal to 0, print "Invalid input".
  def print_fibonacci(n):
      if n <= 0:
          print("Invalid input")
          return
      
      a = 0
      b = 1
      print("Fibonacci Series:") 
      print(a, b, end=" ") 
      
      for i in range(2, n):
          c = a + b
          a = b
          b = c
          print(c, end=" ")
      
      print()
  assert print_fibonacci(5)
  assert print_fibonacci(10)
  assert print_fibonacci(0)
  assert print_fibonacci(-3)
output: def print_fibonacci(n):
      if n <= 0:
          print("Invalid input")
          return
      
      a = 0
      b = 1
      print("Fibonacci Series:") 
      print(a, b, end=" ") 
      
      for i in range(2, n):
          c = a + b
          a = b
          b = c
          print(c, end=" ")
      
      print()