input: Write a function to print the Fibonacci series up to a given number. The function should take an integer as input and print all Fibonacci numbers up to that number. If the input number is less than 0, the function should print "Incorrect input".
  def fibonacci_series(n):
      if n < 0:
          print("Incorrect input")
      else:
          a, b = 0, 1
          while a <= n:
              print(a, end=" ")
              a, b = b, a + b
          print()
  
  assert fibonacci_series(5)==None
  assert fibonacci_series(10)==None
  assert fibonacci_series(-3)==None
  assert fibonacci_series(0)==None
  assert fibonacci_series(1)==None
output: def fibonacci_series(n):
      if n < 0:
          print("Incorrect input")
      else:
          a, b = 0, 1
          while a <= n:
              print(a, end=" ")
              a, b = b, a + b
          print()