input: Write a function to print the Fibonacci series up to a given number. If the given number is negative, print "Incorrect input". Otherwise, print the Fibonacci numbers up to that number.
  assert fibonacci(-1)==print("Incorrect input")
  assert fibonacci(0)==0
  assert fibonacci(1)==1
  assert fibonacci(5)==[0, 1, 1, 2, 3, 5]
  assert fibonacci(10)==[0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55]
output: def fibonacci(n):
      if n < 0:
          print("Incorrect input")
          return
      elif n == 0:
          print(0)
          return
      elif n == 1:
          print(1)
          return
      fib_series = [0, 1]
      while fib_series[-1] <= n:
          fib_series.append(fib_series[-1] + fib_series[-2])
      fib_series.pop()
      print(fib_series)