input: Write a function to print the Fibonacci series up to a given number. If the input number is less than 0, print "Incorrect input". If the input number is 0, return 0. If the input number is 1, return 1. For other cases, iterate and print each number in the Fibonacci sequence up to the given number.
  
  def fibonacci(n):
      a = 0
      b = 1
      if n < 0:
          print("Incorrect input")
      elif n == 0:
          print(a)
      elif n == 1:
          print(b)
      else:
          print(a)
          print(b)
          for i in range(2, n):
              c = a + b
              a = b
              b = c
              print(c)
  
  assert fibonacci(5) == None
  assert fibonacci(1) == None
  assert fibonacci(0) == None
  assert fibonacci(-1) == None
output: def fibonacci(n):
      a = 0
      b = 1
      if n < 0:
          print("Incorrect input")
      elif n == 0:
          print(a)
      elif n == 1:
          print(b)
      else:
          print(a)
          print(b)
          for i in range(2, n):
              c = a + b
              a = b
              b = c
              print(c)