input: Write a function to print the Fibonacci series up to a given number. If the input number is negative, print "Incorrect input". If the input number is zero, print 0. Otherwise, print the Fibonacci series up to the given number.
  def fibonacci(n):
      if n < 0:
          print("Incorrect input")
      elif n == 0:
          print(0)
      else:
          a, b = 0, 1
          print(a)
          while b <= n:
              print(b)
              a, b = b, a + b
  
  n = int(input("Enter a number: "))
  fibonacci(n)
  
  assert fibonacci(5) == None
  assert fibonacci(0) == None
  assert fibonacci(-1) == None
  assert fibonacci(1) == None
  assert fibonacci(10) == None
output: def fibonacci(n):
      if n < 0:
          print("Incorrect input")
      elif n == 0:
          print(0)
      else:
          a, b = 0, 1
          print(a)
          while b <= n:
              print(b)
              a, b = b, a + b